Increase
Speed

Fun litte side quest

Gravity Rocket Game

Gravity Rocket

2026

I fully vibe-coded this 2D physics-based game where you pilot a rocket through gravitational fields of dynamic planetary systems.

Game Mechanics

  • Orbital Gravity: Planets exert gravitational pull on your rocket depending on planetary mass and proximity.
  • Capture an Orbit: Enter stable planetary orbits and complete 1 full revolution to score a point.
  • Inertial Flight: Physics simulation accounting for rotational inertia, linear velocity, and directional thrust.
  • Dynamic Fuel System: Accelerating and rotating consume fuel. Collect randomized refueling power-ups in space to survive.
  • Planetary Systems: Procedural solar systems with diverse planet sizes, atmospheric themes, and orbiting moons.
  • Comets and Asteroid fields: Randomly spawned comets and asteroids that move in straight lines across the screen - crashing into them will end the game.

Controls

  • Up Arrow / Down Arrow: Fire main thrusters (forward / backward acceleration).
  • Left / Right Arrow: Rotate rocket heading (consumes small amount of fuel).
  • Objective: Create high score by completing revolutions around target planets, managing fuel conservation, and exploring deep space without crashing into planetary surfaces.

Technologies Used

Physics SimulationTypeScriptHTML5 CanvasVector Math