class documentation

Represents a game.

Method __init__ Initialize the game.
Method __setattr__ Set a game attribute, routing to the matching setter.
Instance Variable input_manager Undocumented
Method _update Update the game input and entity positions in a thread-safe manner.
def __init__(self, name: str, size, draw, input_manager, foreground_color: int = 65535, background_color: int = 0, camera_context=None, start=None, stop=None):

Initialize the game.

Parameters
name:strName of the game.
size:VectorSize of the game.
draw:DrawDraw context used to render the game.
input_manager:InputManagerInput manager used to handle input.
foreground_color:intForeground color of the game. Defaults to 0xFFFF.
background_color:intBackground color of the game. Defaults to 0x0000.
camera_context:Camera or NoneCamera context used to render the game. Defaults to None.
start:callableFunction called when the game is started. Defaults to None.
stop:callableFunction called when the game is stopped. Defaults to None.
def __setattr__(self, name, value):

Set a game attribute, routing to the matching setter.

Parameters
name:strAttribute name to set.
value:objectNew value for the attribute.
input_manager =

Undocumented

def _update(self):

Update the game input and entity positions in a thread-safe manner.