Scrolling land and collision detection...Opinions?

BlitzMax Forums/BlitzMax Beginners Area/Scrolling land and collision detection...Opinions?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Wow that terrain generator is awesome
I made a game similar to that for the One button competition.
http://www.coorrae.com/artillery/artillery.zip
I just used ReadPixel for collisions. What you can do instead of having a binary mask for collision, is you can have the foreground be a seperate image from the background, and test if there is a pixel on the foreground's imagebuffer.
Using tiles would be ideal if the terrain weren't destructable or if you wanted a larger level though.