🧪 Marble Run Machine (2D)
Side-view companion to the 3D marble run: gravity and friction drive marbles along polyline ramps, spiral chutes, a narrowing funnel and a torque-driven see-saw.
This 2D companion runs the same gravity-along-the-tangent, friction-damped marble physics as the 3D version on a flat side-view canvas: two polyline tracks built from ramps and spiral chutes, a narrowing funnel, and a see-saw whose tilt comes from a real spring/damper reacting to marble torque.
⚙ Under the hood
2D side-view marble run with gravity, friction, max-speed and spawn-rate controls, arc-length-tracked marbles, and a torque-driven see-saw spring/damper.
Marble RunGravityMomentumTorque
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install