GN Math logoGN Math
SpacePi

SpacePi

SpacePi is a defense game where your weapon is a line you draw yourself. A tiny orange base sits in the middle of the screen, and red enemy streaks fly at it from every edge.

Your answer is to sketch little white barriers in their way, and the base keeps swelling toward a target size. Jack Rugile made SpacePi for the js13kGames competition, and every shape in it is drawn in code.

How to play SpacePi

Start with Play Game and choose a level from the row of 13 on the upgrade screen. Only level 1 is unlocked at first, and winning a level unlocks the next.

The Completion bar at the top tracks how close your base is to the target size. Each red streak that gets through bites off part of the base. If it shrinks to almost nothing, you fail. Grow it all the way and the level is yours.

Click and drag to draw a line. When a red streak crosses it, both break apart. Drawing costs power equal to the line's length, and the Power bar refills over time. Destroyed enemies often leave coins and sometimes power-ups, which drift toward your pointer. Coins buy upgrades across ten tracks, like more power, a tougher base and a stronger magnet.

Controls

ActionKeyboardMouseTouch
Draw a line—Click and dragDrag a finger
Collect coins and power-ups—Move the pointer closeTouch near them
PauseSpace——
Upgrades and level select—Click the buttonsTap the buttons

Tips

  • Draw short lines right in front of an incoming streak. They cost little power and still stop it.
  • Your base is tiny at the start, so the first seconds are the most dangerous. Watch every edge.
  • The magnet follows your pointer, not the base, so sweep over coins between waves.
  • Spend early coins on power capacity and generation. They decide how many lines you can afford when things get busy.
  • If an upgrade is out of reach, replay a level you have already cleared to collect more coins. Coins are worth more on later stages, so the newest level you have beaten is usually the best one to farm.

If you like SpacePi, try these

  • City Shield

    Incoming streaks become missiles here, and you set off blasts in the sky to protect six cities.

  • Canvas Tower Defense

    Upgrades between rounds and holding a line appeal in both, with four turret types on neon maps.

Questions

Why is a low score good in SpacePi?

The score adds your time, 100 for each line drawn, the total length of your lines and 500 per hit on the base. Quick wins with few short lines give the smallest total.

What does the P on a level mean?

It marks a Perfect clear, where no enemy streak touched your base. The level screen counts both completed and Perfect levels.

Does SpacePi save my progress?

Yes. Coins, upgrades, best scores and stats are kept in your browser, and there is a button to reset them if you want a fresh start.

More like this: all arcade games · every game A–Z

More arcade games

See all →
Golden Apple Snake game screenGolden Apple SnakeArcadeCoil game screenCoilArcadeHop Across game screenHop AcrossArcadeJetdash game screenJetdashArcadeMole Bonk game screenMole BonkArcadePaddle Duel game screenPaddle DuelArcadePinball game screenPinballArcadePipe Flapper game screenPipe FlapperArcadeSky Hop game screenSky HopArcade