Coriolis Game is a small pygame simulation that lets you launch projectiles inside a rotating cylinder and observe how Coriolis and centrifugal terms bend their paths in a rotating reference frame.
The project has been cleaned up into a small Python package with:
- a stable pygame entrypoint
- isolated physics helpers with automated tests
- packaging metadata for installation
- clearer documentation and license attribution
- Python 3.10 or newer
pygame2.6 or newer
py -3 -m pip install .py -3 main.pyYou can also run the installed console script:
coriolis-game- Left click and drag inside the cylinder to launch a projectile.
- Drag the slider at the bottom of the window to change the angular velocity.
- Close the window to exit.
Run the unit tests:
py -3 -m unittest discover -s tests -vValidate the source tree:
py -3 -m py_compile main.py coriolis_game\\app.py coriolis_game\\physics.py coriolis_game\\settings.pymain.py: local entrypoint for running from the repository rootcoriolis_game/app.py: pygame runtime and drawing codecoriolis_game/physics.py: pure simulation helperscoriolis_game/settings.py: shared constantstests/test_physics.py: regression coverage for the physics layer
Copyright (C) 2024-2026 Daniel Häggström.
This project is distributed under the GNU General Public License v3. See LICENSE and NOTICE for details.