Fun Timing Game in Canvas

Seizure Spheres
Seizure Spheres

I just spent the last two hours building a game with my friend Andrew Beattie. Check out Seizure Spheres now! Right now!

Gameplay is very simple. Just hit WASD to toggle the arrows. You want the colors to be the same when the balls are at their largest. If not, you lose lives. When you run out of lives the game resets (a simple page refresh). The seconds are your score.

The code is ridiculously simple. It uses globals and all sorts of horrible evils. It does have some fun little optimizations though, like it only does a total redraw after the level has been cleared, since it can just draw over the previous state.

There's currently a bug, if you browse to a separate tab your score keeps counting.

Tags: #gamedev
Thomas Hunter II Avatar

Thomas is the author of Advanced Microservices and is a prolific public speaker with a passion for reducing complex problems into simple language and diagrams. His career includes working at Fortune 50's in the Midwest, co-founding a successful startup, and everything in between.