Android game design
I'm working 开发者_JAVA技巧on designing a game with multiple levels and was wondering if I was going about it the right way. I have a menu screen with levels to choose from, and each level(button) would start a new activity specifically for that level. Is that a good practice or just terribly inefficient?
Not only is it a good practice, it is perhaps the only practice. You might consider giving these links a good read and understand the basics. :)
http://developer.android.com/guide/practices/ui_guidelines/activity_task_design.html
http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle
I don't think is the only practice, but is the best practice there is, if you try to make too many activities you will only make the game go slow
精彩评论