class documentation

class GameEngine(engine.Engine):

View In Hierarchy

Run a game through the native engine loop.

Methods

  • run()
    Run the blocking game loop until the game stops.
  • run_async(should_delay=True)
    Run one update and render tick.
  • stop()
    Stop the game, clear the display, and release native resources.
  • update_game_input(input)
    Update the game input while the game is active.
  • __del__()
    Release the native engine resources.
Parameters
gameGame instance to run.
fpsTarget frame rate.
clampWhether to clamp the rendering.
Method __setattr__ Set an engine attribute, routing to the matching setter.
Instance Variable game Game instance managed by the engine.
def __setattr__(self, name, value):

Set an engine attribute, routing to the matching setter.

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

Game instance managed by the engine.