|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Game
Main game API. Most games will want to create an instance of Game.Default and
pass it to PlayN.run(playn.core.Game).
| Nested Class Summary | |
|---|---|
static class |
Game.Default
An implementation of Game that separates game processing into two phases: simulation
and interpolation. |
| Method Summary | |
|---|---|
void |
init()
Called once on initialization. |
void |
tick(int elapsed)
Called on every frame tick, is responsible for performing all game logic and scene graph updates. |
| Method Detail |
|---|
void init()
void tick(int elapsed)
elapsed - the number of ms that have elapsed since the game started.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||