• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Is there a way to save surfaces?

B

Bonny Fernandes

Guest
I am working on an android game and I use surfaces to draw stuff on the screen. The problem is that whenever I minimize the game, the surface is lost. I was wondering if there's a way to save surfaces to a variable or some kind of data structure or maybe a file so I can recover the surface when the game is opened again...
 

RangerX

Member
sprite create from surface
save the sprite on file
import the sprite if need be
draw it on surface

Sounds like a pain :p
 
Top