PlayerTileCollision¶
Description¶
Handles tile collision of the player.
Parameters¶
None.
Return Value¶
- Handles movement, both on the ground and in the air.
- Sets
Object.CollisionMode
toCMODE_FLOOR
,CMODE_LWALL
,CMODE_RWALL
, orCMODE_ROOF
depending on the object's angle, along with updatingPlayer.Angle
based 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.