Module ...

Defines a turn based game If this class is not used the game is realtime. This game type pauses the ticking as long as its paused property is true.
To use it make your player "act" method set the game property paused to true and when an action is made to false

Functions

_M:init (keyhandler, energy_to_act, energy_per_tick) See engine.GameEnergyBased
_M:onTurn () Called every game turns Does nothing, you can override it


Functions

_M:init (keyhandler, energy_to_act, energy_per_tick)
See engine.GameEnergyBased

Parameters

  • keyhandler:
  • energy_to_act:
  • energy_per_tick:
_M:onTurn ()
Called every game turns Does nothing, you can override it

Valid XHTML 1.0!