Book description
Get ready for a fun-filled experience of learning Java by developing games for the Android platform
In Detail
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.
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
Table of contents
-
Learning Java by Building Android Games
- Table of Contents
- Learning Java by Building Android Games
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Why Java, Android, and Games?
- 2. Getting Started with Android
- 3. Speaking Java – Your First Game
- 4. Discovering Loops and Methods
- 5. Gaming and Java Essentials
-
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
- 7. Retro Squash Game
- 8. The Snake Game
-
9. Making Your Game the Next Big Thing
- How to publish your app
- Marketing your app
-
Adding leaderboards and achievements
- Planning the Snake achievements
-
Step-by-step leaderboards and achievements
- Installing the Google Play Services API on your PC
- Configuring the Google Play developer console
- Implementing the leaderboard in the Google Play developer console
- Implementing the achievements in the Google Play developer console
- Setting up the Snake project ready for implementation
- Implementing the player's sign-in, achievements, and leaderboard buttons
- Implementing the leaderboards in code
- Implementing the achievements in code
- Uploading the updated Snake game to Google Play
- What next?
- Self-test questions
- Summary
- A. Self-test Questions and Answers
- Index
Product information
- Title: Learning Java by Building Android Games
- Author(s):
- Release date: January 2015
- Publisher(s): Packt Publishing
- ISBN: 9781784398859
You might also like
book
Learning Java by Building Android Games - Second Edition
Get ready for a fun-filled experience of learning Java by developing games for the Android platform …
book
Learn Java for Android Development: Migrating Java SE Programming Skills to Mobile Development
Gain the essential Java language skills necessary for using the Android SDK platform to build Java-based …
book
Learning Java by Building Android Games - Third Edition
Get ready to learn Java the fun way by developing games for the Android platform with …
book
Beginning Java 8 Games Development
Beginning Java 8 Games Development, written by Java expert and author Wallace Jackson, teaches you the …