Book

Learning Java by Building Android Games

Android, one of the most popular mobile operating systems, uses Java as one of the primary languages for building apps of all types. This new, improved, and updated third edition is unlike other Android books; it doesn’t assume any Java programming experience and shows you how to build Android games from scratch using five exciting game projects.

Offered byPackt Logo

Difficulty Level

Intermediate

Completion Time

22h52m

Language

English

About Book

Who Is This Book For?

Learning Java by Building Android Games is for anyone who is new to Java, Android, or game programming and wants to develop Android games. The book will also serve as a refresher for those who already have experience using Java on Android or any other platform but are new to game development.

Book content

chapters 22h52m total length

Java, Android, and Game Development

Java- First Contact

Variables, Operators, and Expressions

Structuring Code with Java Methods

The Android Canvas Class - Drawing to the Screen

Repeating Blocks of Code with Loops

Making Decisions with Java If, Else, and Switch

Object-Oriented Programming

The Game Engine, Threads, and the Game Loop

Coding the Bat and Ball

Collisions, Sound Effects, and Supporting Different Versions of Android

Handling Lots of Data with Arrays

Bitmap Graphics and Measuring Time

Java Collections, the Stack, the Heap, and the Garbage Collector

Android Localization- Hola!

Collections and Enumerations

Manipulating Bitmaps and Coding the Snake Class

Introduction to Design Patterns and Much More!

Listening with the Observer Pattern, Multitouch, and Building a Particle System

More Patterns, a Scrolling Background, and Building the Player's Ship

Completing the Scrolling Shooter Game

What Next?

Related Resources

Access Ready-to-Use Books for Free!

Get instant access to a library of pre-built books—free trial, no credit card required. Start training your team in minutes!

No credit card required