Class CrouchAbility
java.lang.Object
com.codename1.gaming.platformer.Ability
com.codename1.gaming.platformer.CrouchAbility
Crouching and crawling: holding down on the ground shrinks the body to
crouchHeight, keeping its feet in place. The actor stands again only when
there is room above, so it can crawl through a one-tile gap and stays crouched
under it.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(Actor c, PlatformWorld world) Sets velocity and claims aMovementState.Methods inherited from class Ability
earlyProcess, hashState, isEnabled, lateProcess, mix, reset, setEnabled
-
Field Details
-
crouchHeight
public int crouchHeightHeight while crouched, fixed point.
-
-
Constructor Details
-
CrouchAbility
public CrouchAbility()
-
-
Method Details