class documentation
class GameEngine(engine.Engine):
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.
- update_game_input(
- __del__()
- Release the native engine resources.
| Parameters | |
| game | Game instance to run. |
| fps | Target frame rate. |
| clamp | Whether to clamp the rendering. |
| Method | __setattr__ |
Set an engine attribute, routing to the matching setter. |
| Instance Variable | game |
Game instance managed by the engine. |