Type Ticker
object
--+
|
Ticker
Framerate independent timer
Utility class for event timing. The idea is that a "tick"
happens once every frame, and a "realtick" happens only as
dictated by the resolution of the timer. Useful attribute in this
class:
last_realtick - time when the last realtick took place (as returned by
pygame.time.get_ticks()) next_realtick - when the next realtick should
happen now - current time delta - amount of time from the last tick (in
seconds) realtick - boolean value: is the current tick a realtick?
Method Summary |
|
__init__(self,
resolution)
|
|
tick (self)
this method should be called once per frame |
tick(self)
this method should be called once per frame
-
|