I'm writing a game with a little ship flying around a landscape which uses Imagescollide detections between ship and background to see if the player has crashed. Now I want to have the background of the tunnels you fly through coloured in rather than black. This gives me 2 options:
1. Paste a background graphic down, then overlay the terrain graphic on it.
*or*
2. Draw the bagrounds into the terrain graphic, and use a separate graphic containing the terrain, but with an empty background, as a collision map.
I've decided to plump for 2 for speed. Problem is that memory is limited and I don't want to use a 16-bit background just for the collision map. Is there any way to load a 1 bit image and check for collisions with it, or can anyone suggest another alternative?
1. Paste a background graphic down, then overlay the terrain graphic on it.
*or*
2. Draw the bagrounds into the terrain graphic, and use a separate graphic containing the terrain, but with an empty background, as a collision map.
I've decided to plump for 2 for speed. Problem is that memory is limited and I don't want to use a 16-bit background just for the collision map. Is there any way to load a 1 bit image and check for collisions with it, or can anyone suggest another alternative?