Space Pi Defense is a mouse-accuracy base defense game in the browser: click and drag to draw lines that stop enemy rays, grow your base to the target radius across 13 levels, collect coins for upgrades, and grab timed powerups. About ~60 KB after Play, no install, no account.
Prefer a twin-stick space shooter instead? Try Orbital Radius Shooter.
js13k SpacePi by Jack Rugile (MIT). Draw defensive lines, grow the base, spend coins on upgrades across 13 levels. About ~60 KB downloads once from this site when you press Play. Progress stays in your browser.
Click-drag to draw lines (power limited). Space pauses. A mouse or trackpad works best; canvas is 960x600.
Space Pi Defense
Space Pi Defense is a mouse-drawn line-defense game across 13 levels: draw lines to stop incoming enemy rays, grow your base out to its target radius, and spend coins on upgrades while chasing a lower score. Press Play to load it; progress saves in this browser under ftol:spacepidefense:user, so you can close the tab and resume later.
Key features
- 13 escalating levels - enemy speed and damage rise stage by stage, played with the mouse or trackpad.
- Coins and four powerups - earn coins and use four powerup types, then upgrade power, base, magnet, coins, and powerups between levels in the shop.
- Score to beat - lower scores are better, and a perfect clear marks any level finished with zero base hits.
- Overall stats and reset - the game tracks overall stats and can reset all game data for a clean start.
- Runs in the browser - about 60 KB loads after Play on a fixed 960 by 600 canvas, with no server, no account, and nothing fetched from a CDN, fonts, or analytics after the first same-origin load.
How to play
- Click and drag to draw defensive lines; their length is limited by a power meter that regenerates over time.
- Press Space to pause.
- Keep the base growing toward its target radius - hits shrink it, and you fail if it drops near radius 2.
- Clear each level to advance through all 13 stages.
When to jump in
The line-drawing loop suits a quick mouse-accuracy break or a longer push for perfect clears. It is adapted from Jack Rugile's SpacePi js13k entry under the MIT license; this build renames the save key and ships its LICENSE and CREDITS, runs on no server, and needs no account.
Frequently Asked Questions
What does Space Pi Defense do?
It is a mouse-accuracy defense game: draw lines to stop enemy rays, grow your base to a target radius across 13 levels, spend coins on upgrades, and use timed powerups. Lower scores are better.
Does it work on a phone?
The page loads on a phone, but drawing lines needs a pointer. A desktop mouse or trackpad is the practical way to play the 960x600 canvas.
Is anything saved in my browser?
Yes. Level progress, upgrades, funds, and overall stats use localStorage key ftol:spacepidefense:user. Reset Game Data clears it. Nothing is uploaded.
How big is the download?
About ~60 KB of HTML/CSS/JS after you press Play. The browser caches it for later visits on the same device.
How do I play?
Press Play, then Play Game in the engine menu. Click-drag to draw defensive lines (limited by power). Space pauses. Beat levels, spend coins on upgrades, then climb all 13 bases.
Is this open source?
Yes. It is adapted from SpacePi by Jack Rugile for js13kGames under the MIT license (jackrugile/spacepi-js13k). This site build ships LICENSE and CREDITS.