Skip to content

PacktPublishing/Learning-Java-by-Building-Android-Games-Second-Edition

Repository files navigation

Learning Java by Building Android Games

Learning Java by Building Android Games

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

What is this book about?

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!

https://www.packtpub.com/

Instructions and Navigations

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).

Software and Hardware List

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).

Related products

Get to Know the Author

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.

Other books by the authors

Suggestions and Feedback

Click here if you have any feedback or suggestions.

About

Learning Java by Building Android Games, Second Edition, published by Packt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages