Learning Java by Building Android Games

Extend your game development skills while learning Java – follow this book and learn Java for Android to enter the world of Android games development with greater confidence
Preview in Mapt

Learning Java by Building Android Games

John Horton

1 customer reviews
Extend your game development skills while learning Java – follow this book and learn Java for Android to enter the world of Android games development with greater confidence
Mapt Subscription
FREE
$29.99/m after trial
eBook
$18.90
RRP $26.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$18.90
$44.99
$29.99 p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Learning Java by Building Android Games Book Cover
Learning Java by Building Android Games
$ 26.99
$ 18.90
Unity 2017 Game Development Essentials - Third Edition Book Cover
Unity 2017 Game Development Essentials - Third Edition
$ 39.99
$ 28.00
Buy 2 for $35.00
Save $31.98
Add to Cart

Book Details

ISBN 139781784398859
Paperback392 pages

Book Description

Android is the fastest growing operating system (OS) with one of the largest installed bases of any mobile OS. Android uses one of the most popular programming languages, Java, as the primary language for building apps of all types. So, you should first obtain a solid grasp of the Java language and its foundation APIs to improve the chances of succeeding as an Android app developer.

This book will show you how to get your Android development environment set up and you will soon have your first working game. The difficulty level grows steadily with the introduction of key Java topics such as loops, methods, and OOP. You'll then use them in the development of games. You will learn how to build a math test game, a Simon-like memory game, a retro pong-style game, and for the grand finale, a Snake-style, retro arcade game with real Google Play leaderboards and achievements. The book has a hands-on approach and is packed with screenshots.

Table of Contents

Chapter 1: Why Java, Android, and Games?
Is this book for me?
Why build games to learn to program?
Why Android and Java?
Setting up our development environment
Summary
Chapter 2: Getting Started with Android
Our first game project
Exploring Android Studio
Using the Android Studio visual designer
Structuring our code for Android
Our first look at Java
Building and installing our game
Self-test questions
Summary
Chapter 3: Speaking Java – Your First Game
Java syntax
Storing data and using it with variables
Expressing yourself in Java
Math game – asking a question
Decisions in Java
Math game – getting and checking the answer
Self-test questions
Summary
Chapter 4: Discovering Loops and Methods
Looping with loops
Methods
Enhancing our math game
Finishing touches
Self-test questions
Summary
Chapter 5: Gaming and Java Essentials
Java arrays – an array of variables
Timing with threads
Beeps n buzzes – Android sound
Life after destruction – persistence
The memory game
Self-test questions
Summary
Chapter 6: OOP – Using Other People's Hard Work
What is OOP?
Our first class and first object
Encapsulation
Inheritance
Polymorphism
More about OOP and classes
Self-test questions
Summary
Chapter 7: Retro Squash Game
Drawing with Android Canvas
Android Canvas demo app
Detecting touches on the screen
Preparing to make the retro squash game
The four implementation phases in detail
Self-test questions
Summary
Chapter 8: The Snake Game
Game design
The coordinate system
The code structure
Animation, sprite sheets, and the Snake home screen
Implementing the Snake game activity
Enhancing the game
Self-test questions
Summary
Chapter 9: Making Your Game the Next Big Thing
How to publish your app
Marketing your app
Adding leaderboards and achievements
What next?
Self-test questions
Summary

What You Will Learn

  • Set up an efficient, professional game development environment in Android Studio
  • Build your very own Android UI using easy to-use tools in Android Studio
  • Add real-time interaction with Java threads and implement locking/handling screen rotation, pixel graphics, clicks, animation, sound FX, and many other features in your games
  • Explore object-oriented programming (OOP) and design scalable, reliable, and well-written Java games or apps on almost any Android device
  • Build and deploy a graphical pong-style game using advanced OOP concepts
  • Explore APIs and implement advanced features such as online leaderboards and achievements using Google game services
  • Make your game compelling to be the next big hit on Google Play market with a content update strategy and in-game marketing

Authors

Table of Contents

Chapter 1: Why Java, Android, and Games?
Is this book for me?
Why build games to learn to program?
Why Android and Java?
Setting up our development environment
Summary
Chapter 2: Getting Started with Android
Our first game project
Exploring Android Studio
Using the Android Studio visual designer
Structuring our code for Android
Our first look at Java
Building and installing our game
Self-test questions
Summary
Chapter 3: Speaking Java – Your First Game
Java syntax
Storing data and using it with variables
Expressing yourself in Java
Math game – asking a question
Decisions in Java
Math game – getting and checking the answer
Self-test questions
Summary
Chapter 4: Discovering Loops and Methods
Looping with loops
Methods
Enhancing our math game
Finishing touches
Self-test questions
Summary
Chapter 5: Gaming and Java Essentials
Java arrays – an array of variables
Timing with threads
Beeps n buzzes – Android sound
Life after destruction – persistence
The memory game
Self-test questions
Summary
Chapter 6: OOP – Using Other People's Hard Work
What is OOP?
Our first class and first object
Encapsulation
Inheritance
Polymorphism
More about OOP and classes
Self-test questions
Summary
Chapter 7: Retro Squash Game
Drawing with Android Canvas
Android Canvas demo app
Detecting touches on the screen
Preparing to make the retro squash game
The four implementation phases in detail
Self-test questions
Summary
Chapter 8: The Snake Game
Game design
The coordinate system
The code structure
Animation, sprite sheets, and the Snake home screen
Implementing the Snake game activity
Enhancing the game
Self-test questions
Summary
Chapter 9: Making Your Game the Next Big Thing
How to publish your app
Marketing your app
Adding leaderboards and achievements
What next?
Self-test questions
Summary

Book Details

ISBN 139781784398859
Paperback392 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Android Programming for Beginners Book Cover
Android Programming for Beginners
$ 39.99
$ 28.00
Android Game Programming by Example Book Cover
Android Game Programming by Example
$ 35.99
$ 25.20
Beginning C++ Game Programming Book Cover
Beginning C++ Game Programming
$ 39.99
$ 28.00
Python Game Programming By Example Book Cover
Python Game Programming By Example
$ 31.99
$ 22.40
Learning C# by Developing Games with Unity 5.x - Second Edition Book Cover
Learning C# by Developing Games with Unity 5.x - Second Edition
$ 35.99
$ 7.20
Learning Scrapy Book Cover
Learning Scrapy
$ 27.99
$ 19.60