Class engine.GameTurnBased

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

Methods



Methods

engine.GameTurnBased:init (keyhandler, energy_to_act, energy_per_tick)

Parameters:

  • keyhandler Key
  • energy_to_act number
  • energy_per_tick number

See also:

engine.GameTurnBased:tick ()
main game loop
generated by LDoc 1.4.3