Adding damage to buildings.
BlitzMax Forums/BlitzMax Beginners Area/Adding damage to buildings.
| ||
My Gorilla remake is shaping up nicely, but only one thing remains: Building damage :( When a banana hits a building, I would like to create a crator of a certain size where it hit. What would be the best way of doing this? My buildings are set up in an array of a type: The only idea I have is to just draw circles the same color as the background over top of the buildings. Then a banana would only explode if it's touching a building and NOT touching one of the circles. I would make another type to hold all the circle objects. The only problem I see with this is, I would like it to be as pixel-perfect as possible and with this method it wouldn't be. Any ideas? |
| ||
Oh like my artillery game? http://www.curtastic.com/artilleryblitz/artilleryblitz.htm Ya, draw the background-colored circle only once onto the building image, instead of to the backbuffer. I don't know the blitzmax equivalent of imagebuffer(). I think you need to use a pixmap. |