Polishing the Application
Although your game is playable as is, it could use some polishing. A welcome screen would be a nice addition so players can learn about the game before jumping into it. You have a lot of options when it comes to adding this feature, but making a rudimentary entrance screen is easy, and you can fine-tune it for each game. In this section, you add a screen and then a button to start up the game.
Adding an Splash Screen
Because GameView.java
takes care of the actual game and its appearance, your startup page is handled by MainActivity.java
. Instead of setting the screen to show GameView
, you present a quick layout and then give the user the ability to enter the game. This makes your work more professional and easier for ...
Get Beginning Android Tablet Games Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.