Skip to content

Black Friday

Annual Pro is $90 for the first year, normally $120. Or start monthly at $6 for two months, then $12.

Ends Dec 4, 11:59 PM PT.

Create an account
← Public packages

@kentcdodds/starsnake

Starsnake: steer a snake-like ship Asteroids style, grow a crystal tail, and spend crystals on towers to defend your core. Mobile friendly.

FollowForkOpen app

Files

README.md

27 lines · 2.1 KB · Markdown

Starsnake

Intent

A free browser game that mixes three classics. Steer a snake-like ship Asteroids style, shoot rocks, collect crystals to grow a tail, and spend crystals on towers that defend the pink core in the middle of the screen. Built for phones first, and it also plays on a desktop with the keyboard.

Play it at https://starsnake.kentcdodds.com.

How to play

  • Goal: keep the core alive. You lose if the core is destroyed or you hit your own tail.
  • Touch: drag anywhere to steer. The ship turns toward your thumb, and pushing far boosts. The ship fires on its own.
  • Keyboard: Left/Right or A/D turn, Up or W boosts. 1 2 3 drop towers, 4 repairs the core, 5 upgrades your gun, E upgrades the nearest tower. P or Esc pauses, M mutes.
  • Crystals: shot rocks drop pink crystals. Every 3 crystals grow your tail by one bead, and every third bead is a gunner. Crystals are also your money.
  • Towers: a tower drops where your ship is. Pulse is fast and cheap, Cannon is slow with splash damage, Frost slows rocks in range. Tap a tower, or fly over it and tap its button again, to upgrade it (3 levels).
  • Tail: it is a weapon. Whip it into rocks: small and medium rocks shatter in one hit, big rocks take two (one while boosting), and hit rocks drop crystals and get knocked away. Each bead recharges for a moment after a hit. The big rock on every fifth wave hits back and knocks a bead off per touch. A rock that rams your head still costs two beads, and touching your own tail with your head ends the run.
  • Waves: each wave is bigger and faster, a big rock arrives every fifth wave, and clearing a wave repairs your towers and pays a bonus.
  • Your high score and sound setting are saved in this browser (localStorage keys starsnake-hi and starsnake-mute). Nothing is sent anywhere.

Setup

No setup and no secrets. It is a Kody package app with no credentials, no storage, and no outbound requests.

Done when

  • The page loads at the app URL, the title screen shows, and PLAY starts a game on a phone and on a desktop.
  • Sharing the link shows the 1200x630 preview image.