Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Learning Android Game Development
Learning Android Game Development

Learning Android Game Development: A Beginner's guide to developing popular Android games

Arrow left icon
Profile Icon Malankar
Arrow right icon
zł39.99 zł125.99
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2 (2 Ratings)
eBook May 2017 238 pages 1st Edition
eBook
zł39.99 zł125.99
Paperback
zł157.99
Subscription
Free Trial
Arrow left icon
Profile Icon Malankar
Arrow right icon
zł39.99 zł125.99
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2 (2 Ratings)
eBook May 2017 238 pages 1st Edition
eBook
zł39.99 zł125.99
Paperback
zł157.99
Subscription
Free Trial
eBook
zł39.99 zł125.99
Paperback
zł157.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Learning Android Game Development

Getting Familiar with Android Studio

This chapter will guide you through Android Studio and, by the end of this chapter, you will have successfully executed your first Android project. This will be an important chapter for your core understanding of the project structure of Android and will help you with the chapters that follow. You will learn the following:

  • General project structure of an Android Project
  • Default class explanation
  • XML files and different types of XML files
  • Setting up Android Emulator
  • Executing your first Hello World program

Understanding the Android project structure

So, in our last chapter, we successfully set up our Android Studio with the required components to start working on our project right away. Let's get started. In order to learn about the Android project structure, we must first open up a new project.

Creating your first Android Studio project

Open your Android Studio, and click on Start a new Android Studio project, as shown in the following screenshot:

Once you start a new project, you will see the following screenshot:

In this screen, fill in the details of your first Android app:

  • Application name is the name of your app, which will appear on the icon of your phone when it is installed.
  • Company Domain is an identifier for your app. Make sure that...

Summary

In this chapter, you have gone through our Android Project Structure as well as developing a basic understanding of how to create elements using the XML file. We also learned how to set up the Android Emulator and executed our Hello World! program.

In the next chapter, we will take a look at how to manage inputs and we will dive deeper into understanding XML files, which will serve as a core foundation for making our games. We will also learn how to link your XML files to your source code, change texts, and other cool stuff.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Leverage the latest features of Android N to create real-world 2D games
  • Architect a 2D game from scratch and level up your Android game development skill
  • Transition from developing simple 2D games to 3D games using basic Java code

Description

In this book, we’ll start with installing Android studio and its components, and setting it up ready for Android N. We teach you how to take inputs from users, create images and interact with them, and work with sprites to create animations. You’ll then explore the various collision detection methods and use sprites to create an explosion. Moving on, you’ll go through the process of UI creation and see how to create buttons as well as display the score and other parameters on screen. By the end of the book, you will have a working example and an understanding of a 2D platform game like Super Mario and know how to convert your 2D games to 3D games.

Who is this book for?

If you are a mobile developer who has basic Java programming knowledge, then this book is ideal for you. Previous Android development experience is not needed; however, basic mobile development knowledge is essential.

What you will learn

  • Understand the nuts and bolts of developing highly interactive and interesting games for Android N
  • Link the interface to the code used in games through simple methods
  • Interact with the images on the screen and also learn to animate them
  • Set and save the game state and save high scores, hit points, and so on for your games
  • Get a grasp of various collision techniques and implement the bounding box technique
  • Convert your 2D games to 3D games using Android N
  • Get an understanding of the process of UI creation using Android Studio

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 26, 2017
Length: 238 pages
Edition : 1st
Language : English
ISBN-13 : 9781785882913
Vendor :
Google
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : May 26, 2017
Length: 238 pages
Edition : 1st
Language : English
ISBN-13 : 9781785882913
Vendor :
Google
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just zł20 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just zł20 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 549.97
Android Programming for Beginners
zł221.99
Learning Android Game Development
zł157.99
Mastering Android Game Development with Unity
zł169.99
Total 549.97 Stars icon
Banner background image

Table of Contents

10 Chapters
Introduction to Android N and Installation of Android SDK Chevron down icon Chevron up icon
Getting Familiar with Android Studio Chevron down icon Chevron up icon
Managing Inputs Chevron down icon Chevron up icon
Creating Sprites and Interactive Objects Chevron down icon Chevron up icon
Adding Animation to Your Game Chevron down icon Chevron up icon
Collision Detection and Basic Artificial Intelligence Chevron down icon Chevron up icon
Adding Boundaries and Using Sprites to Create Explosions Chevron down icon Chevron up icon
Adding an Explosion and Creating a UI Chevron down icon Chevron up icon
Converting Your Game from 2D to 3D Chevron down icon Chevron up icon
Working Further on 3D Game Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
(2 Ratings)
5 star 0%
4 star 0%
3 star 50%
2 star 0%
1 star 50%
Dillon Jul 01, 2017
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
So far it needs further revision, errors pop up in code that should be explained before the code is presented and the changes the reader is instructed to make should be highlighted/in bold (the changes are not in bold which can be confusing to some readers).
Amazon Verified review Amazon
Galymzhan Sh Aug 09, 2017
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
238 pages of obsolete information with no prior explanation, including OpenGL ES 1 in 2017.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.