Cosmic Drift

paused

Absorb smaller planets, avoid bigger ones, be the last one left.

Tech Stack

HTML5 CanvasJavaScriptCSS

Gameplay

Absorb smaller planets, avoid bigger ones, be the last one left.

Survival mode gameplay

What it is
A big-fish-eats-small-fish clone where the fish became planets and the planets got gravity. My first game, somehow.
Physics
Every body follows force = G × mass / distance². Boost triples it: handy for vacuuming food, fatal near anything bigger.
AI
Each bot hunts anything 10% smaller and flees anything 10% larger. Early versions boosted straight into gravity wells because the prey was orbiting a sun.
Stack
Vanilla JS on an HTML canvas, hosted on Vercel. No framework, no build step, 1,700 lines.