Game ticks

Game ticks

Demo 0.11.2

How it works

Ticks

  1. The game advances in ticks of 1000 ÷ ticks per second ms. The project sets no tick rate, so the engine default of 60 ticks per second applies: one tick is 16.67 ms.
  2. An action interval is rounded to the nearest whole number of ticks, round(interval ÷ tick); an interval shorter than one tick is refused. 1,500 ms is 90 ticks.
  3. A timer counts its ticks down and fires on the last one; a repeating timer starts again at once.