Play SpacePi Online Free

Draw short lines to block incoming red streaks while your base grows toward its target size across 13 levels.

SpacePi title screen on SZ Games
  • Touch: some features

Tip: rotate your phone to landscape so the play area gets wider.

SpacePi is a defense game where your only weapon is a line you draw yourself. A small orange base sits in the middle of the screen, and red enemy lines streak toward it from every side. Drag across their path to place a white barrier, and both lines break apart when they meet. Jack Rugile made SpacePi for the js13kGames contest, and the whole game is drawn in code.

The Goal of Each Level

Your base starts as a dot and grows on its own over time. The Completion bar at the top shows how close it is to the target size. Each hit from a red line takes away part of the base. If it shrinks to nearly nothing, the level is lost. If it reaches the target, you win and the next level opens.

There are 13 levels in a row along the bottom of the upgrade screen. Only the first is open at the start. Later levels send faster, harder-hitting enemies and ask for a bigger base.

Power, Coins and Upgrades

Drawing costs power. A long line drains more of the Power bar than a short one, and the bar slowly fills back up. That makes careless drawing a real risk during a busy wave.

Broken enemy lines often drop coins, and now and then a power-up. Move your pointer near them and they float toward it. Power-ups can slow enemies, give unlimited power for a while, double base growth or rain coins across the field.

How to Control SpacePi

Input guide for SpacePi
To do thisOn a keyboardWith a mouseOn a touchscreen
Sketch a defensive line—Click and drag across the screenDrag with a finger
Attract coins and power-ups—Bring the pointer close to themTouch close to them
Pause or continuePress Space——
Purchase upgrades and choose levels—Click the buttonsTap the buttons

Between levels, spend coins on ten upgrade tracks, each with five steps. Your coins, upgrades and best scores are saved in your browser.

Defense Tips

  • Keep lines short and draw them just in front of an enemy.
  • Watch all four edges in the first seconds, when your base is smallest.
  • Steer the pointer over drops, because the magnet follows the pointer, not the base.
  • Spend early coins on power capacity and power generation.
  • Replay a cleared level if you need a few more coins.
  • Fewer lines help your score, so place each one with care.

If you enjoy guarding a central target, Planet Protector is a good next stop, or look through more arcade games.

Last played and checked by SZ Games:

SpacePi – Questions and Answers

How do I win a level?

Keep your base safe until it grows to the target size shown on the Completion bar. If red lines shrink it to almost nothing first, the level fails and you can try again.

Why can't I draw any more lines?

Every line costs power equal to its length. When the Power bar runs low, wait a moment for it to refill, or buy Power Capacity and Power Generation upgrades.

Does it work on a phone?

You can draw lines by dragging a finger, and the buttons respond to taps. Play is only partly suited to small screens, so a larger screen or a mouse makes it easier.

Try Something Different