playn.core
Interface Game

All Known Implementing Classes:
Game.Default

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).

See Also:
Understanding the Game Loop

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

init

void init()
Called once on initialization. Most setup work should be performed in this method, as all PlayN subsystems are guaranteed to be available when it is called.


tick

void tick(int elapsed)
Called on every frame tick, is responsible for performing all game logic and scene graph updates. When this method returns, the scene graph will be rendered to the screen.

Parameters:
elapsed - the number of ms that have elapsed since the game started.


Copyright © 2013. All Rights Reserved.