Detecting collision of background objects.

Hello guys! Before I begin, I just wanna say that I'm a noob and I'm sorry if there is a simple solution or if I should have Googled.

Anyway, my problem is that, I'm creating a game, and in the game, you're a ship flying in a cave. The cave enviorment is stored in an array of ints. From there its blited onto the screen with the correct tiles.

I'm just wondering how I can detect a collision with my ship and the BG tiles.

I don't believe posting my current code will help, but if you want, I can.
It very much depends on how and what you are doing...are you using a library like SFML? Are you doing it in the console (which is bad)?
Thanks for responding!

I'm using Allegro. I made a custom map render-er.
It dynamically renders the map, rather than having one huge map image.
Topic archived. No new replies allowed.