Journal post 5 & demo
Posted by nilsf
August 9th, 2008 8:59 am
LDT + 1400
Local time: 19:00

Here’s a working demo.
The collision code is still buggy though, and it’s rather ugly.
It’s written in python + pygame, so just $python run.py to play.
Also it doesn’t catch exceptions yet so if the sound isn’t available it will die.
edit: dead link, get the final version instead
Looking good…
The collision detection has indeed some problems (I ran through walls and doors a couple of times)…
Are you doing a rectangle/line segment collision detection?
You might want to steal some code for that from http://www.geometrictools.com... I think the compo rules allow for that, since it’s free to use for non-comercial uses and doesn’t implement game logic…
Actually, I was doing rectangle to rectangle, thanks for the link though.