Timer¶
-
class
quest.contrib.timer.TimerMixin[source]¶ Maintains a clock for the game that can enforce time-based game states and elements like a countdown.
- You can mix this class into a physics engine like this:
class TimedPhysicsEngine(PhysicsEngine, TimerMixin): … …
-
init_timer(total_game_time=None)[source]¶ Records the start time of the game
- Parameters
display (Boolean) – whether to display the timer or not
total_game_time (int) – how much time a game should last