Initializing, please wait a moment

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.

SPACE PI DEFENSE

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.

Press Play to load the game.
Saves use ftol:spacepidefense:user.

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.

← Back to Games

Related tools:

  • Snake Classic - Snake Classic - Press an arrow key (or swipe on a phone) and the game starts instantly - eat the
  • Retro Tank Battle - Retro Tank Battle - Drive your tank with the arrows or WASD, fire with Space, and clear the wave of
  • Garden Defense - Garden Defense - Pick a defender card - Shooter (100 energy), Battery (50, makes more energy), or
  • Voxel World Builder - Voxel World Builder - a free browser voxel sandbox: infinite terrain, six biomes, caves and ores,
  • Sky Gates Flight - Sky Gates Flight - Fly a little plane over the ocean and steer through the gates - green ones add
  • City Time Machine 3D - City Time Machine 3D - Drag the 1945-2055 timeline and watch one city block's buildings, vehicles,
  • 2048 Game - Merge the Numbers Puzzle - 2048 Game - Merge the Numbers Puzzle - Slide the numbered tiles with the arrow keys, WASD, or a
  • City Drive Open World 3D - City Drive Open World 3D - a free open-world driving game in the browser: a seeded neon night city
  • Retro Highway Racer - Retro Highway Racer - a free lo-fi driving game in the browser: steer a randomly generated highway,
  • Hover Racing - Hover Racing - a free anti-gravity racing game in the browser: pilot a hover ship down a neon 3D
  • Retro Arcade Shooter - Retro Arcade Shooter - a free lo-fi browser shooter: blast robot spiders through a dark server
  • Marble Maze - Marble Maze - a free 3D maze puzzle in the browser: roll a ball through a procedurally-generated

Tags: #games

Related guides:

Loading reviews...

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.