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
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Mastering Android Game Development with Unity
Mastering Android Game Development with Unity

Mastering Android Game Development with Unity: Build high-end Android games with Unity's advanced features

Arrow left icon
Profile Icon Siddharth Shekar
Arrow right icon
$22.99 $32.99
eBook May 2017 352 pages 1st Edition
eBook
$22.99 $32.99
Paperback
$41.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Siddharth Shekar
Arrow right icon
$22.99 $32.99
eBook May 2017 352 pages 1st Edition
eBook
$22.99 $32.99
Paperback
$41.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$22.99 $32.99
Paperback
$41.99
Subscription
Free Trial
Renews at $19.99p/m

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

Mastering Android Game Development with Unity

Finishing the Perky Penguin 2D Game

The previous chapter was all about new and beginner developers interested in Unity and game development. As this book is focused on game development for the Android platform, so the previous chapter, which happens to be the very first chapter of the book, introduced the Android platform, its different versions, and its marketplace, Google Play. Then the chapter revised the concepts of game engines and then brought Unity 3D into light by comparing it with other major game engines such as Unreal, Adobe Flash, and Game Maker Studio. The chapter made a transition through the very basics of Unity game development, such as introducing Unity's interface, its panels, such as the inspector panel, the hierarchy panel, and so on. It also introduced the concepts of scene view and game view and how they interact with each other and how these views help developers to make it an easy and...

Adding Particle Systems

Before we delve into the details of particle systems, let's discuss what exactly these systems are and how they are used. Let's start with a discussion of what particle systems are.

What is a Particle System?

In any 3D complex game, characters, props, and environment elements are mostly created as 3D meshes and models, while in 2D games, sprites and images are used for these same purposes. Now, whether these objects are meshes or sprites, they mostly represent solid objects which contain a well-defined shape. But any game contains other entities such as fluids, liquids, smokes, clouds, flames, magic balls, and so on. These are some sort of special kinds of animations and objects, and are handled also with a special type of properties...

Camera management

So now we have a game in which we have a penguin that can fly and jump with a rocket fire particle system effect. Also, we have a basic environment of snow backgrounds in the scene as well. In this section, we will learn about how we to make the penguin move throughout an endless generated level and how the camera will always be focused on the penguin.

Making the penguin move forward

Let's start by making our penguin move in a forward direction. To do that, open the file PenguinController.cs created in Chapter 1, Introduction to Android Game Development with Unity3D. This file is contained in the Scripts folder of the Assets directory. Add the forward speed public field in the class, as shown in the following code:

    public float forwardMovementSpeed...

Prefabs and level management

There is not a single game which doesn't contain at least one level. Levels are what makes games feel like an experience and adventure. Levels come with different kinds of difficulties and players start to have feelings of accomplishing something and rewards. So, to put the soul in our Penguin Perky game, let's add levels to our game. But the question that arises here is what type of levels we should add to the game. Since the game is endless, so it would be a very suitable to add automatically generated levels with random obstacles and enemies in the game. In order to do that, we need a script that will take care of generating random environments and rooms along with putting enemies and barriers to balance the game difficulty.

Unity provides developers with the opportunity to instantiate the game objects at runtime and define behaviours in them, also at runtime. We can add...

Summary

In this chapter, we continued our Perky Penguin game and added particle systems to it. Then we learned about managing the camera, and we made the camera follow the penguin throughout the game. Then we worked on Prefabs and created a level block Prefab which we generated in the game from the code to make an endless level generating game. Then we created a Spike Prefab to create an obstacle for the penguin in the game which gets generated randomly and rotates with different speeds at runtime.

In the next chapter, we will move our concepts of making games to 3D and introduce you to the workflow and systems to create 3D complex games in Unity 3D.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Develop complex Android games with the help of Unity's advanced features such as artificial intelligence, high-end physics, and GUI transformations.
  • Create amazing Graphical User Interfaces (GUIs) with Unity's new uGUI system
  • Unravel and deploy exciting games across Android devices

Description

Game engines such as Unity are the power-tools behind the games we know and love. Unity is one of the most widely-used and best loved packages for game development and is used by everyone, from hobbyists to large studios, to create games and interactive experiences for the Web, desktop, mobile, and console. With Unity's intuitive, easy-to-learn toolset and this book, it's never been easier to become a game developer. You will begin with the basic concepts of Android game development, a brief history of Android games, the building blocks of Android games in Unity 5, and the basic flow of games. You will configure an empty project for the Jetpack Joyride Clone Game, add an environment and characters, and control them. Next you will walk through topics such as particle systems, camera management, prefabs, animations, triggers, colliders, and basic GUI systems. You will then cover the basic setup for 3D action fighting games, importing models, textures and controlling them with a virtual on-screen joystick. Later you will set up Scene for 3D Configuration, create basic gameplays, and manage input controls. Next you will learn to create the interface for the main menu, gameplay, game over, achievements, and high score screens. Finally you will polish your game with stats, sounds, and Social Networking, followed by testing the game on Android devices and then publishing it on Google Play, Amazon, and OUYA Stores.

Who is this book for?

If you are a Unity 5 developer and want to expand your knowledge of Unity 5 to create high-end complex Android games, then this book is for you. Readers are expected to have a basic understanding of Unity 5, working with its environment, and its basic concepts.

What you will learn

  • Develop your own Jetpack Joyride clone game
  • Explore the advanced features of Unity 5 by building your own Action Fighting game
  • Develop remarkable Graphical User Interfaces (GUIs) with Unity s new uGUI system
  • Enhance your game by adding stunning particle systems and complex animations
  • Build pleasing virtual worlds with special effects, lights, sky cube maps, and cameras
  • Make your game more realistic by providing music and sound effects
  • Debug and deploy your games on different Android devices

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 25, 2017
Length: 352 pages
Edition : 1st
Language : English
ISBN-13 : 9781785282942
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 25, 2017
Length: 352 pages
Edition : 1st
Language : English
ISBN-13 : 9781785282942
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 $5 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 $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 145.97
Mastering Unity 5.x
$54.99
Mastering Android Game Development with Unity
$41.99
Unity 2017 Mobile Game Development
$48.99
Total $ 145.97 Stars icon

Table of Contents

8 Chapters
Introduction to Android Game Development with Unity3D Chevron down icon Chevron up icon
Finishing the Perky Penguin 2D Game Chevron down icon Chevron up icon
Adding Player Character for an Action Fighting Game Chevron down icon Chevron up icon
Enemy Characters with AI Chevron down icon Chevron up icon
Gameplay, UI, and Effects Chevron down icon Chevron up icon
GameScene and SceneFlow Chevron down icon Chevron up icon
Gamestats, Social, IAP, and Ad Integration Chevron down icon Chevron up icon
Sound, Finishing Touches, and Publishing Chevron down icon Chevron up icon
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.