Game Dev Session – Stabilizing Tests for Karma Coverage

Loading the canvas libs Now that Karma is all wired up, I can start poking at the tests. The first problem I need to fix involves canvas-libs. knobsAndLevers uses the supporting object in canvas-libs to set a randomized initial spawn interval for the creatures. The usage is: this.spider.initialInterval = supporting.getRandom(this.spider.interval.min, …

Game Dev Session – Completed Canvas Gamepad Movement

Planning Yesterday, I left off with the gamepad controls working, but only in a way that basically broke all of the challenge of the game. The change allowed the player to move outside the defined player boundaries, which meant they could shoot from below the canvas with impunity. Hurray! Today, …

Game Dev Session – Canvas Gamepad Support

Today, I’m adding controller support to Centipede. (See the first controller commit.) Controls Code Cleanup First, the location of the controls currently doesn’t make a lot of sense, so I’m moving them to a new file, controls.js. On load, controls.addEventListeners will execute. There are no dependencies, so the script load …

Game Dev Session – Adding That Falling Bug to Centipede

Session Planning Back to centipede! Adding that falling bug creature. It should be pretty much exactly like the worm, only moving vertically, and will create mushrooms in its wake. Rename the worm object to something else like simple-interval-creature (is that a horrible name?). This could be combined with spider as …

I’m an Indie Game Developer

Can I say that? Does it make people think I’ll never focus or settle? Are they sighing and looking at me with frustration and thinking “Not this again?” Does it matter what they think? Answer to all: maybe. I have half a dozen self-published, unfinished games that nobody plays up …

Ready, Set, Flail

My Origin Story I started my career as a student. Spoiler: I’m still a student. I didn’t know what I wanted. OK, I knew I wanted to just play games, eat pizza, and drink mountain dew all day. But none of that was going to get me anywhere except diabetic. …

Hosting Node.js and Express App on Heroku

I’ve been checking Node.js out lately, and thought I’d share a quick Hello World using the Jade templating engine. Get Node set up From your terminal: cd /tmp wget http://nodejs.org/dist/v6.9.2/node-v6.9.2-linux-x64.tar.gz tar xvfz node-v6.9.2-linux-x64.tar.gz mkdir -p /usr/local/nodejs mv node-v6.9.2-linux-x64/* /usr/local/nodejs Then add this to your ~/.bashrc: export PATH=$PATH:/usr/local/nodejs/bin Don’t forget to …