Utils - JakeTurner616/pygame-lua-bindings GitHub Wiki
Other methods that have not been categorized for whatever reason
initialize_pygame()
Initialize Pygame modules.
Returns: None.
Maps to:
pygame.display.init()
: Initializes Pygame display module.pygame.font.init()
: Initializes Pygame font module.
delay(milliseconds)
Delay execution for a given number of milliseconds.
Parameters:
milliseconds
: The number of milliseconds to delay execution.
Returns: None.
Maps to:
pygame.time.delay(milliseconds)
: Delays execution for the specified number of milliseconds.
sleep(seconds)
Delay execution for a given number of seconds.
Parameters:
seconds
: The number of seconds to delay execution.
Returns: None.
Maps to:
time.sleep(seconds)
: Delays execution for the specified number of seconds.
version()
Return the version of the Pygame library.
Usage in Lua:
pygame_version = version()
print(pygame_version)
Maps to:
pygame.version.ver
: This attribute retrieves the version of the Pygame library.
get_sdl_version()
Return the version of the SDL library that Pygame uses.
Usage in Lua:
pygame_sdl_version = get_sdl_version()
print(pygame_sdl_version)