Coriolis Game JS is a small browser-based simulation of projectile motion inside a rotating cylinder habitat. You launch projectiles from the inner surface and observe how Coriolis and centrifugal effects reshape the path in the rotating reference frame.
- Drag-to-launch interaction with a capped maximum shot speed
- Adjustable angular velocity from
-0.50to0.50RPM - Real-time display of launch speed relative to local tangential speed
- Lightweight static deployment: no build step, no backend, no package install
Because the project is a static web app, any basic HTTP server is enough.
python -m http.server 8000Then open http://localhost:8000.
npx serve .- Click and drag inside the cylinder to aim and set launch speed.
- Release the pointer to fire.
- Use the RPM slider to change habitat rotation speed and direction.
- Phaser is pinned to an exact CDN version in
index.htmlfor reproducible deployments. - The simulation loop is frame-rate compensated so trajectories are more consistent across machines.
- Only the five most recent projectiles remain visible to keep the scene readable.
index.html: app shell, styles, controls, and script loadingmain.js: Phaser scene, drag handling, projectile updates, and rotating-frame forces
Copyright (C) 2026 Daniel Häggström.
This project is licensed under the GNU General Public License v3.0 or later. See LICENSE.