VinayGupta23 / alter-ego-game

A puzzle-platformer game with clones! Developed as part of CSCI526: Mobile Games at USC.
https://vinaygupta23.itch.io/alter-ego
0 stars 1 forks source link

Player jump fix #12

Closed EfazMuh closed 2 years ago

EfazMuh commented 2 years ago

Contains fix for ground checking, removal of double jump, and addition of WebGL publishing.

EfazMuh commented 2 years ago

Bug Description: The player would only be counted as grounded if a certain area of the player's feet was on the ground, so the left and right thirds of the players wouldn't count. Ex: If only a third of the player is on the edge of a platform, the jumps wouldn't be reset. Fixed by changing the collision check to a rectangle area. The colXOffset is to set the side bounds to prevent wall jumping. The colYOffset is to set the height of the collision check so only the lowest part of the player is checked.