Starting the project
We will quickly create a new project and add the code necessary for a game engine that is nearly identical to the Pong game and then we can move on to coding the Bullet
class.
Create a new project called
Bullet Hell
.Use the Empty Activity template and name the Activity
BulletHellActivity
. All other options the same as previous two game projects.Uncheck the Generate Layout File option – we do not want a layout generated as we will be laying out every pixel ourselves.
Uncheck Backwards Compatibility (AppCompat) we won't need it for our games and they will still run on almost every phone and tablet.
As we have done before we will edit the Android manifest.
Change the AndroidManifest.xml to lock in landscape and full-screen
As a reminder, here is how to edit the AndroidManifest.xml
file.
Make sure the
AndroidManifest.xml
file is open in the editor window.In the
AndroidManifest.xml
file, locate the following line of code:android:name=".BulletHellActivity">
Place the cursor...