ProcessObjectMovement¶
Description¶
Handles tile collision of an object/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
object.speed
,object.xvel
, andobject.yvel
. - Determines if the character is
flailing
,pushing
, or is now in the air.