I am wondering if it is possible to make a flash duplicate of this game.
http://www.scorch2000.com/800x600.htm
Also, note how land is destroyed in this PC game:
The feature Thats tricky is how the land is destroyed, and the tanks fall. I have looked at the bitmap API, and I didn’t find any way to remove pixels. Redraw the entire bitmap? Set pixels transparent and do a hittest like… psedocode if (hittested pixel == transparent) { keep moving tank down}
Any ideas?
Actually, more to the point… Is using getPixel/setPixel practical performance wise for this task?
The hittest/checks to see if a pixel is visible or not wont take much processing.
yes, in fact, if I remember correctly setPixel is the fastest way to render according to a blog post I read a while ago.
OH WAIT! Maybe I’m overthinking this… Can’t I just take a transparent circle bitmap and overlay it onto the bitmap to remove visible land?
This formula on this page would also work:
http://livedocs.adobe.com/flex/3/html/help.html?content=Working_with_Bitmaps_11.html