Best way to work with Bitmaps (Worms style)

Started by Cheeslord, November 14, 2006, 07:38:51 AM

Previous topic - Next topic

Cheeslord

Hi; I'm new to PlayBasic and having briefly gone over the graphical commands I am wondering what the best way is to use an editable bitmap as a backdrop for a game. Basically the idea is to have terrain that can be created or destroyed on a pixel level (e. g. Worms, Liero).

Plainly Maps wont do, and since there does not appear to be any support for handling the background under sprites (i.e. storing whats under a sprite and re-drawing it when the sprite moves so it doesent corrupt what its drawn over) then you can't simply leave the background on the Screen.

I have got it to work by storing the background on an Image, which I can direct drawing operations to to edit the bitmap, and drawing the image to the screen every frame, but this strikes me as a very inefficient solution. What would be a better way of doing this?

Thanks,

Mark.

Ian Price

Have you looked in the CodeTank recently? I have created two demos that do exactly what you want. Stef has also created one, as has Kevin.

See this forum HERE for all your needs.
I came. I saw. I played some Nintendo.