Your only tool in this game is a pen, and your only job is to keep a little orange dot alive. Red streaks rush at it from every side of the screen. Scribble a white line in their way and they shatter on contact. SpacePi unblocked turns that simple idea into 13 levels of quick drawing and smart spending.
Jack Rugile made it for the js13kGames contest, so the whole thing is drawn in code with no image files at all.
How to play SpacePi
Start a level from the strip of numbered buttons on the upgrade screen. At first only level 1 is open. Clear it and the next one unlocks. During play, the orange base in the middle grows a little at a time, and a progress meter up top tracks its growth toward the goal size.
Hold the button and drag to lay down a shield line. Lines cost power, and longer lines cost more, so the Power bar drains as you draw and slowly fills back up. When an enemy streak touches your base, the base loses size. Let it shrink to nothing and the level is lost.
Broken enemies drop coins and the odd power-up. These float toward your pointer when it gets close. Between levels, coins buy upgrades in ten areas, from power storage to coin value. Your score works like golf: time taken, lines drawn and hits on the base all add to it, so lower is better.
Controls
| To… | Keyboard | Mouse | Touch |
|---|---|---|---|
| Draw a defensive line | — | Click and drag | Drag a finger |
| Pull in coins and power-ups | — | Move the pointer near them | Touch near them |
| Pause or resume | Space | — | — |
| Buy upgrades and pick levels | — | Click the buttons | Tap the buttons |
Tips
- Draw small and late. A short line placed just in front of a streak blocks it as well as a long one and leaves power for the next attack.
- Guard the first few seconds hardest. The base is at its tiniest when a level begins, and an early hit can wipe it out.
- Drag your pointer through the loot. Coins chase the cursor, not the base, so sweep across them in quiet moments.
- Spend on power before anything else. More storage and faster refill let you answer crowded waves without running dry.
- Farm a cleared level if you are short on coins. An easy replay is a low-risk way to afford the next upgrade.
- Chase a Perfect on early levels. Finishing with zero hits earns a P mark and good practice for the harder stages.
SpacePi questions
Does SpacePi save my upgrades?
Yes. Coins, upgrades, unlocked levels and best scores are kept in your browser's storage. There is a reset button if you want to start fresh.
Why can't I draw a long line?
Each line uses power equal to its length. When the Power bar runs low, your line ends early. Wait a moment for it to refill or buy the power upgrades.
Can I play SpacePi on a phone?
Partly. Dragging a finger draws lines and taps work on the menus, but there is no on-screen pause and the play area is small. A mouse gives more precise lines.