Skip to content
Riemann edited this page Nov 20, 2013 · 5 revisions

The state that dictates what happens during gameplay. Many things happen during this state. It uses a standard update render loop.

Important Fields:

  • map The terrain of the game. Stored as a bytemap compatible with images.
  • players An arraylist of the players of type tank.

-update()

The core of the logic for the game. Most of the logic executes in the timeStep bound loop. Input detection are acceptable exceptions to this. Also keeps track of whose turn it is and switches accordingly.

Screenshot of game play

See: Source

Clone this wiki locally