How the Slingshot Gravity Works

Orbital Drift - gravitational orbital dynamics and periapsis slingshot transfer schematic
Fig 1. Gravitational orbital mechanics diagram: radiant stellar mass, Keplerian orbital ellipses, periapsis slingshot release vector, and hyperbolic escape trajectory.

In Orbital Drift, you pilot a deep space probe without thrusters, steering wheels, or reverse gears. You survive purely by drifting on momentum and latching a gravity tether to a central radiant star. When the tether is disengaged, you glide in a straight line. When you hold Spacebar or press your mouse button, the tether latches on and pulls you inward, curving your trajectory into a tight arc.

High scores depend on mastering the gravitational slingshot. As your craft plunges down toward the star, gravity naturally accelerates you forward like a roller coaster diving down a steep hill. Releasing the tether at the closest point flings your probe outward in a high-speed straight escape line.

Controls and Slingshot Timing

The flight system uses a responsive single-verb control mapped across keyboard and touch:

Key / Click Action What Happens
Hold Spacebar / Click Attach Gravity Tether Pulls your probe inward toward the star and charges your Pulse capacitor.
Release Spacebar / Click Slingshot Release Snaps the tether, converting orbital momentum into high-speed straight-line flight.
Release after 2s Hold Super Pulse Phase Grants a massive burst of speed and invulnerability to smash through space debris.
P Pause Game Freezes the simulation clock, score multiplier, and heat accumulation.
R Quick Retry Restarts your flight run instantly after an accidental collision or burn.

Hazards and Solar Danger Zones

The orbital arena contains concentric danger zones you must balance carefully:

  • The Star Core: The central burning sun. Touching the core causes instant vaporization. Pulse invulnerability will not protect you from a direct solar hit.
  • The Radiation Heat Belt: Skimming close to the star supercharges your score multiplier, but rapidly fills your heat gauge. If heat hits 100%, your ship explodes.
  • The Debris Asteroid Belt: Floating boulders circling the star. Crashing into one without an active Pulse shield is fatal, but grazing close scores near-miss bonuses.
  • Periodic Solar Flares: Every twenty seconds, a warning siren sounds as the star temporarily swells, squeezing your safe flight corridor.
  • Screen Borders: Drifting off the screen edge severs your telemetry and terminates the run.

How to Survive the Early Game (Avoiding the Infinite Hold Trap)

The number one mistake new pilots make is holding the tether continuously. Beginners treat the tether like an automobile steering wheel. But because gravity constantly pulls inward, holding it non-stop spirals your ship straight into the star.

Adopt a steady "dive and release" rhythm:

  • Hold the tether as you plunge toward the star to build speed.
  • Release the button right at the closest point to fling yourself back out into safe orbit.
  • Use a "hot lap, cold lap" routine: dive close to harvest score points, then coast outward to let your ship shed heat naturally.

Scoring Multipliers and Mote Combos

Chasing leaderboard scores means chaining green energy motes while dodging debris:

  • Green Energy Motes: Hover in orbit and draw toward your ship when you fly nearby.
  • Combo Chains: Snagging motes in rapid succession builds your combo multiplier, dramatically increasing point payouts per pickup.
  • Debris Grazes: Flying within inches of floating boulders without touching awards near-miss points without risking your hull.

Tips for Longer Survival Runs

Surviving past two minutes requires adjusting to late-game hazards:

  • Never slingshot into corners: The speed boost from a charged pulse can fling you off the screen edge before you can react. Always slingshot sideways across the canvas.
  • Watch the wandering companion star: A wandering blue companion star enters the arena on longer runs. Keep your distance so its separate gravity well doesn't pull you into nearby debris.

Frequently Asked Questions

The tether continuously pulls your probe inward toward the star's core. Holding it indefinitely collapses your orbit into the fire. Treat the tether like a swing: hold it to build speed as you dive, then release at closest approach to slingshot away.

Holding the tether continuously for over two seconds charges your Pulse capacitor. Releasing while charged gives you a massive speed boost and temporary invulnerability to smash straight through orbital space debris.

Skimming the radiation zone around the star rapidly fills your heat gauge. Release the tether and coast out into cold space, where your ship sheds heat naturally within a few seconds.

Built with pure vanilla HTML5 canvas and standard Web Audio (no external engines or heavy libraries).