This past weekend was the 4th annual Global Game Jam, and we hosted a site in the triangle again. I was an organizer this year, but I still had plenty of time to jam, creating Planes on a Snake with my team. The theme was a picture of an ouroboros, which we interpreted by setting a shmup on the back of the world serpent.
Brief Play Description
A rift in spacetime has resulted in a large number of World War II era planes getting stuck on the world snake.
Join the frequent fliers club of Ouroboros Airlines, racking up points while taking advantage of the torus nature of your new environment.
If you’re using LPD8806 LED strips and you can’t use the hardware SPI port (e.g., when using an Ethernet board), there are two other options in the Adafruit library: the default mode and ‘slowmo’ mode. The default mode is decent, but the flexibility of being able to choose the pins at runtime comes with a cost.
However, you can still get a decent speedup by defining your pin usage at compile time in a replacement show() function. I measured the time required to update an 86 LED strip using each method on an EtherTen board (Atmega328 @ 16 MHz, same as the Uno):
30.23 ms - Adafruit 'slowmo' method (digitalWrite)
7.76 ms - Adafruit default method (port pointers) 1.54 ms - Compile-time method
1.43 ms - Adafruit hardware SPI method
I’ve been using Arduino boards for a bunch of random projects lately. They may not be as inexpensive or as small as throwing together a microcontroller and a resonator on a piece of perf board, but they’re a lot faster when making one-offs: lots of shields with ready-to-go libraries, quick programming / test cycle, etc…
One major downside is that the official Arduino IDE has a super-awful text editor, but there is a solution. Visual Micro has a plugin called Arduino for Visual Studio that makes everything ‘just work’ in the VS IDE, even VAX. Install the Arduino 1.0 IDE, then install the plugin, and all you have to do is point the plugin to your Arduino directory the next time you run devenv. It handles the rest, setting up syntax highlighting for .ino/.pde files, adds a toolbar to pick the board type and COM port, etc… To top it all off, it compiles about 10 times faster than the official IDE (0.2 – 0.5 s versus 5-10s); so much faster that it seems like there is a bug in the current version of the Arduino IDE.
Long story short, if you are doing any Arduino development and have VS 2008 or VS 2010 (the express edition won’t work since it doesn’t have support for plugins), you should download it now for a massive productivity boost.
The evening had some new converts to green beans almondine, and the spiral baked ham turned out very nice. I followed a recipe from Emeril Lagasse, making a cherry-orange glaze, and cooking with Coca Cola in the pan to prevent the ham drying out.