Tuesday, April 24, 2012

Reseaching Sprite Collision Detection in SDL

Some references:

http://www.google.com/#hl=en&q=sprite+collision+detection
http://www.gamedev.net/reference/articles/article735.asp

Huge collection of sdl tutorials : http://lazyfoo.net/SDL_tutorials/index.php

I created a very primitive sprite collision scheme built into my multi bouncing ball demo.
Here is the Youtube video: First Sprite Collision Attempt

Here is the code:
collision.c

You compile the code like this:
gcc `sdl-config --cflags --libs`  collision.c

Enjoy.

No comments:

Post a Comment