Well I've finnaly decided to start Android game dev, and my first project will be simple 2d canvas based game. I have some experience in game developing with C# and XNA, and I'm a bit confused now. Back in XNA we have Game class with Initialize, Update and Draw methods.
In Android I have to extend SurfaceView class, run draw and update in their own thread, and receive touch input from user.
I'm looking for a proper way to structure my code.
Some of my questions are :
- How to deal with Activities (Should I run everything in one activity, or split whole game in 2 or more) ?
- Where should I run game loop ?
- Where to put Draw and Update methods ?
- How to respond to touch events ?
Hope I came to the right place for answers...