inspired by this awesome nds tracker and an old boingboing post, i decided to make an implementation of conway's game of life in ruby, using the gosu and chingu game development gems.
after finding a way round the terrible deep cloning in ruby it was incredibly painless and very interesting. i like how the initial choice of cells influences whether you have a beautiful symmetrical oscillating pattern or a horrible cancerous mess, after 100 or so generations.
Sunday, 6 June 2010
Tuesday, 23 March 2010
Sunday, 7 March 2010
2D OBB Collisions in XNA
OBBs (Oriented Bounding Boxes) allow for a greater degree of accuracy than their axis aligned counterparts in the field of collision detection. It turns out this is a lot simpler to implement in 2D than 3D.
Here's my own take on it, which I hope to put to heavy use in an ongoing project. The OBB is modelled by an orientation matrix (in the form of two Vector2's because the Matrix type seems to suck), an origin and a Vector2 representing the +ve half widths in the x and y axis.
Here's my own take on it, which I hope to put to heavy use in an ongoing project. The OBB is modelled by an orientation matrix (in the form of two Vector2's because the Matrix type seems to suck), an origin and a Vector2 representing the +ve half widths in the x and y axis.
The object includes intersection methods and a crude draw method for debug purposes (you'll need to supply your own spritebatch and a 1x1 texture2d to use it)
Wednesday, 24 February 2010
comicompo 2
The second tigforums.com comicompo completed this week. My page sucked because I was working 12 hour days (with an hour's commute each way) in crunch mode. I wanted to go for the style _why did the first few pages of nobody knows shoes, but I rushed it.
I've acquired some books on graphic design, as I hope to never again inflict such a thing upon the world.
Thursday, 4 February 2010
Subscribe to:
Posts (Atom)

