Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.
public class GlideAbility
Gliding: holding
Input#ALT (or jump, when holdJump) while falling caps the
fall at glideFall.Fields
public int glideFall | Fastest fall while gliding, fixed point per tick. |
public boolean holdJump | Whether holding jump glides too, as in many platformers. |
Constructors
public GlideAbility() |
Methods
public void process(Actor c, PlatformWorld world) | Sets velocity and claims a MovementState. |
Inherited methods
From Ability
isEnabled, setEnabled, earlyProcess, reset, lateProcess, hashState, mix
Field details
glideFall
public int glideFallFastest fall while gliding, fixed point per tick.
holdJump
public boolean holdJumpWhether holding jump glides too, as in many platformers.
Constructor details
GlideAbility
public GlideAbility()Method details
process
public void process(Actor c, PlatformWorld world)Sets velocity and claims a
MovementState.Parameters
cActor- the actor
worldPlatformWorld- the world