Practice Android programming with this simple mobile game project. Learn how to build Android games using Java and the built-in features in the Android SDK.
There are many ways to build mobile games, but for most projects you’ll find everything you need in the core SDK. Practice Android programming while you learn to build a simple game app with the Android SDK and Java—no C++ or gaming engine required! This project showcases all of the SDK’s strengths, including clean, fluid motion; complex game mechanics; and persistent scoring. Instructor shows how to build the visuals, including the background, menus, and controls, and add animation with the built-in classes in Android. Then he helps you program the game logic. Learn how to define different levels, increment and display scores, manage game resources, and add audio effects—both longer music files with the MediaPlayer component and shorter sound effects with Android’s SoundPool class. This project is a fun and rewarding way to learn Android programming, and can be used as a template for your own game apps.
- Working with Java vs. C++
- Creating a new Android project
- Defining the visuals: background, menus, and animation
- Defining and managing levels
- Displaying scores
- Managing limited gaming resources
- Completing the game logic
- Adding audio effects