Class FlyAbility
java.lang.Object
com.codename1.gaming.platformer.Ability
com.codename1.gaming.platformer.FlyAbility
Free flight with no gravity, steered on both axes, for bats, ghosts and drones
(and a debug camera hero).
-
Field Summary
FieldsModifier and TypeFieldDescriptionintChange of speed per tick.intFlying speed, fixed point per tick. -
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
-
speed
public int speedFlying speed, fixed point per tick. -
acceleration
public int accelerationChange of speed per tick.
-
-
Constructor Details
-
FlyAbility
public FlyAbility()
-
-
Method Details