[SDL] Sprite, collision with tiles

Salvatore Di Fazio salvatore.difazio at gmail.com
Sat Sep 2 23:50:01 PDT 2006

2006/9/2, Carolina Simões Gomes <alma_horadrim at hotmail.com>:
> Maybe you should use a bounding box for your sprite and, for each tile,
> check if any of the 4 box corners are within the tile area. But this would
> work only if you keep track of your tiles as structs, or at least their
> position.

Yes, I would and I keep track of my tiles position in an array.

Anyway maybe I found a solution...

More information about the SDL mailing list