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

  1. Object
  2. Ability
  3. GlideAbility
Gliding: holding Input#ALT (or jump, when holdJump) while falling caps the fall at glideFall.

Fields

public int glideFallFastest fall while gliding, fixed point per tick.
public boolean holdJumpWhether 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

Field details

glideFall

public int glideFall
Fastest fall while gliding, fixed point per tick.

holdJump

public boolean holdJump
Whether 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

c Actor
the actor
world PlatformWorld
the world