The Dord of Darien

Musings from the Mayor of the Internet

Collision detection

I’ve been writing some simple games lately, since I’m completely terrible at programming and I’m going to need to get better if I’m ever going to make anything good. Today’s project so far has left me with a bounded single-screen game with a player character who can move in eight directions and attack with a sword in four, a bunch of mobs that spawn on one edge of the screen and move toward the other edge, the ability to attack the mobs and kill them and get points for it, and proper layering of various textures.

Currently, though, the collision detection is pretty thoroughly half-baked. Turns out that collision detection on transformed sprites is kind of a bear. I spent a few hours working on it, reading tutorials, and looking at examples, but eventually my eyes started to rot out of my head and I just had to set it aside for a while. I’m pretty bad at programming.

The bright side is that once the collision detection is working, I’ll have something pretty solid (unless you count the art assets, which are currently a weird bunch of really shitty hackjobs I did myself and some stuff I pulled off the internet) to build on.

September 26th, 2009 Posted by | Games | one comment

1 Comment »

  1. I have nothing to say here except that I am writing this on my new Kindle.

    Comment by Dave | 27 September 2009

Leave a comment

You must be logged in to post a comment.