PlayerTileCollision¶
Description¶
Handles tile collision of the player.
Parameters¶
None.
Return Value¶
- Handles movement, both on the ground and in the air.
- Sets
Object.CollisionModetoCMODE_FLOOR,CMODE_LWALL,CMODE_RWALL, orCMODE_ROOFdepending on the object's angle, along with updatingPlayer.Anglebased on the current tile stepped. - Updates
Player.Speed,Player.XVelocity, andPlayer.YVelocity. - Determines if the character is
Flailing,Pushing, or is now in the air.