What one step reads from outside the world: one tick of the inputs the
game’s plugins declare, each kind in a list of its own at the places the
composition gives it, the character’s move, heading and jump among them
where the game lists characters(). Where it comes from is the
caller’s: the browser, the network or a test, which holds an input
with holdInput.
| Property |
Type |
Description |
angles? |
number[] |
Each of the game’s angles as a whole step round a full turn, at its place among the composition’s angles; left out is every angle at 0. |
axes? |
number[] |
Each of the game’s axes as a whole step, below 0 under its rest and above 0 over it, as readAxisSides splits them, at its place among the composition’s axes, 0 its rest; left out is every axis at rest. |
buttons? |
number |
The game’s buttons the player holds, a bit each at its place among the composition’s buttons; left out is none held. readInput reads it. |
changes? |
number[] |
The player’s buttons’ changes within the tick, in the order the player made them, each packed by packInputChange, at most maximumInputChanges; left out is none. readInputChanges reads them. |
vectors? |
number[] |
Each of the game’s vectors as two whole steps, x then y, at its place among the composition’s vectors; left out is every vector at rest. |