SpacePi is a defense game where your weapon is a line you draw with the mouse. Red streaks fly toward a small orange base in the middle of the screen, and you slash white lines across their path to destroy them. It mixes fast aiming with careful budgeting, since every line spends power, and it was made by Jack Rugile for the js13kGames contest.

Playing a level

Press Play Game and choose a level from the row of 13 on the upgrade screen. Only level 1 is unlocked at the start, and each win opens the next.

The base begins tiny. Survive and it grows, and the Completion bar shows how close it is to the target size. Each enemy that reaches the base bites a piece off. If it shrinks to nearly nothing, you fail. Hit the target and you win.

Drag to draw a line. An enemy that touches it bursts, and so does your line. The Power bar drops by the length of each line and slowly refills.

SpacePi Controls

Controls for SpacePi
ActionKeyboardMouseTouch
Draw a defensive line—Click and dragDrag a finger
Pull in coins and power-ups—Move the pointer near themTouch near them
Pause or resumeSpace——
Buy upgrades and pick levels—Click the buttonsTap the buttons

Geometry and budgeting

Blocking a streak is a quick geometry problem. The shortest line that crosses a path sits at a right angle to it and close to the enemy. Long diagonal lines waste power and add length to your score.

Between levels you become a planner. Coins dropped by enemies buy ten upgrade tracks with five steps each, covering power, base toughness, magnet strength, coin drops and more. Choosing what to buy first is a real resource decision. Power-ups can slow enemies, give unlimited power, double growth or scatter extra coins.

Strategy that pays off

  1. Draw short, perpendicular lines right in front of each threat.
  2. Watch every edge in the opening seconds, when one hit can be fatal.
  3. Move the pointer over drops. The magnet pulls toward your pointer, not the base.
  4. Buy Power Capacity and Power Generation early so busy waves stay affordable.
  5. Replay a cleared level to farm coins for an expensive upgrade.

Small Details That Help

Coins, upgrades, best scores and stats are saved in your browser, with a reset button if you want a fresh start. Press Space to pause. For another planning-heavy defense game, see Canvas Tower Defense, or try the reflex test Rock Blaster.

Tested and updated: