Jay McGavren's Journal

2009-05-21

Zyps at MofoCamp

Zyps was one of two chosen topics for Mofocamp last night. I wasn’t really expecting that, so I was totally unprepared, but we piled into one of the breakout rooms and started hacking away.

I said Zyps was ideally suited for simulations or shooter-type games, and someone raised the idea of an Asteroids clone. I said not only could it be done, but half the code was written already (ExplodeAction, WrapAround, ShootAction, etc.). The only uncertain area was keyboard input (and 10 minutes of wxRuby research took care of that).

It was definitely not my cleanest work ever; we copied the entire Zyps repo since the last gem is so old, and ripped the entire contents of bin/zyps as a basis. I didn’t realize it was loading an empty environment from a YAML file, so when I wasn’t answering questions I was trying to figure out why the Asteroid and Ship objects (coded by Andrew Bowerman and Roy VandeWater) I was dropping in were mysteriously disappearing.

Thanks in part to that, we were 40 minutes late for presentation time (which was OK because the Processing team left without presenting), but we finally had a working demo. Lots more to be done, but not bad for two and a half hour’s work.

Code (in “zyps” subdir)

Wiki

Zypseroids

comments powered by Disqus