This is the code repository for Learning Java by Building Android Games, published by Packt.
Learn Java and Android from scratch by building six exciting games
Android is one of the most popular mobile operating systems presently. It uses the most popular programming language, Java, as the primary language for building apps of all types. However, this book is unlike other Android books in that it doesn’t assume that you already have Java proficiency.
This book covers the following exciting features: <First 5 What you'll learn points>
-
Set up a game development environment in Android Studio
-
Implement screen locking, screen rotation, pixel graphics, and play sound effects
-
Respond to a player’s touch, and program intelligent enemies who challenge the player in different ways
-
Learn game development concepts, such as collision detection, animating sprite sheets, simple tracking and following, AI, parallax backgrounds, and particle explosions
-
Animate objects at 60 frames per second (FPS) and manage multiple independent objects using Object-Oriented Programming (OOP)
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
AudioAttributes audioAttributes =
new AudioAttributes.Builder()
.setUsage(AudioAttributes.USAGE_MEDIA)
Following is what you need for this book: Learning Java by Building Android Games is for you if you are completely new to Java, Android, or game programming and want to make Android games. This book also acts as a refresher for those who already have experience of using Java on Android or any other platform without game development experience.
With the following software and hardware list you can run all code files present in the book (Chapter 1-15).
Chapter | Software required | OS required |
---|---|---|
1-26 | Android Studio | Windows, Linux, Mac (Specific |
instructions given for Windows. | ||
Minor interpretation needed for | ||
Mac or Linux) |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. [Click here to download it](Graphics Bundle Link).
Author Name John Horton
Author Name John Horton is a programming and gaming enthusiast based in the UK. He has a passion for writing apps, games, books, and blog articles. He is the founder of Game Code School.
Click here if you have any feedback or suggestions.