Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public interface PlatformView.InputSource
Supplies the player’s input instead of the device, for a replay or a
remote player.
Methods
public abstract int[] next(PlatformWorld world, int local) | The input for the next tick. |
Method details
next
public abstract int[] next(PlatformWorld world, int local)The input for the next tick.
Parameters
worldPlatformWorld- the world about to step
localint- what the local devices read this tick
Returns
com.codename1.gaming.platformer.Input bits per actor, in the
order they were added; actors with a brain ignore theirs