Setting Up the Project

As mentioned in the last chapter, we will merge the code for Mr. Nom with our framework code. All the classes related to Mr. Nom will be placed in the package com.badlogic.androidgames.mrnom. Additionally, we have to modify the manifest file, as outlined in Chapter 4. Our default activity will be called MrNomGame. Just follow the ten steps outlined in the section “Android Game Project Setup in Ten Easy Steps” in Chapter 4 to set the <activity> attributes properly (that is, so that the game is fixed in portrait mode and configuration changes are handled by application) and to give our application the proper permissions (writing to external storage, using a wake lock, and so forth).

All the assets from the previous sections ...

Get Beginning Android 4 Games Development 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.