My game features lots of explosions, and I would like for each explosion to leave an impact crater behind. I have a big sprite as my background, from a png file. I also have the crater graphic as a png.
I can simply add a crater sprite for each explosion. This doesn't seem smart, as there might be hunderds of explosions, and thus hunderds of sprites. This might become very slow.
My question: is it possible to somehow draw the craters onto the background png? That way there wouldn't be a performance hit, no matter how many craters there are.
How would I do this?
Thanks for reading!