12: AAAAH! Zombies

Today’s hack was going to be built around the gamepad API – but I utterly failed to get it working nicely with any of my USB or Bluetooth controllers. Not to mention that support seems patchy at best across all platforms/browsers. So I decided to make a little game instead.

Today’s game is quite simple and quite bodged together. I stole the raycaster-based movement from Pete’s day 11 hack to make it possible to move around the “level”.

When you hit “Start” a hoard of zombies start moving towards you. You can move around to avoid them and if you stare at a zombie while touching the screen (or holding the button) you have a (high) chance of killing them.

I’m going to work on this some more for day 13, so keep your eyes peeled for that update!

Cardboctober day 12

View this Cardboctober hackView the source code on Github

View the other submissions for day 12 on the Cardboctober website.

Check out all of my other Cardoctober posts here: /cardboctober.


Want to comment? You can do so via Github.
Comments via Github are currently closed.


Want to reply? I've hooked up Webmentions so you can do so by sending a Webmention, or a Tweet mentioning this post.

Sent a Webmention but it's not showing up below? It could take a little while for brid.gy to pick it up. Webmentions are cached locally for 30 mins before attempting to fetch new Webmentions.