D
D
Dmitry2015-09-08 10:02:30
Android
Dmitry, 2015-09-08 10:02:30

How to break out of the loop and save data in SurfaceView?

I'm trying to implement a simple game on SurfaceView. There is a class inherited from Thread and a run() method. It is in it that I do drawing and animation. But you need to exit the loop if the variable short gameover = 0, save the data and close the Activity with the SurfaceView. How to organize this? Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question