I'm being a bit lazy, I haven't tried this out yet in either way, as I figured other people would have come across this problem.
I'm writing some code which will draw a tunnel which a ship must attempt to fly through - a bit like thrust if anyone remembers that.
Although I'll be using tiles in order to draw out my map - I wondered what was the correct way to check for a collision.
Looking at the help screens, I can use ImagesCollide, but it means checking with every tile that make up my map every frame.
Alternatively I can work out exactly where my ship will be drawn and read the pixels to checkif I would draw the ship over the map - and blow it up if appropriate.
Neither one seems brilliantly efficient - any suggestions ?
I'm writing some code which will draw a tunnel which a ship must attempt to fly through - a bit like thrust if anyone remembers that.
Although I'll be using tiles in order to draw out my map - I wondered what was the correct way to check for a collision.
Looking at the help screens, I can use ImagesCollide, but it means checking with every tile that make up my map every frame.
Alternatively I can work out exactly where my ship will be drawn and read the pixels to checkif I would draw the ship over the map - and blow it up if appropriate.
Neither one seems brilliantly efficient - any suggestions ?