main#
Functions
|
Run the main event loop: handle input, step simulation, and render. |
- main()[source]#
Run the main event loop: handle input, step simulation, and render.
Initializes Pygame and the window, constructs the Simulation and InputState, and iterates frames by processing input, stepping the simulation by substeps, drawing the scene, and overlaying performance and state metrics.
- Return type:
None