Time - JakeTurner616/pygame-lua-bindings GitHub Wiki
get_ticks()
Get the time in milliseconds since pygame.init() was called.
Returns: Number of milliseconds.
Maps to:
pygame.time.get_ticks()
: This function returns the time in milliseconds since Pygame initialization.
wait(milliseconds)
Pause the program for an amount of time.
Parameters:
milliseconds
: Number of milliseconds to pause.
Returns: Actual number of milliseconds used.
Maps to:
pygame.time.wait(milliseconds)
: This function pauses the program for the specified number of milliseconds.
delay(milliseconds)
Pause the program for an amount of time.
Parameters:
milliseconds
: Number of milliseconds to pause.
Returns: Actual number of milliseconds used.
Maps to:
pygame.time.delay(milliseconds)
: This function pauses the program for the specified number of milliseconds.
set_timer(event, millis, loops=0)
Set an event to appear on the event queue every given number of milliseconds.
Parameters:
event
: Event type or pygame.event.Event object.millis
: Time in milliseconds.loops
: Number of events to post (0 for infinite).
Maps to:
pygame.time.set_timer(event, millis, loops)
: This function sets an event to appear on the event queue every given number of milliseconds.