Book Details

ISBN 139781783550777

Paperback337 pages

Book 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.

Table of Contents

Chapter 1: Introduction to Android Game Development with Unity3D

Introduction to Android

Unity3D and game engines

Features of Unity3D

Basics of Unity game development

Configuration of empty game projects

Perky Penguin game

Adding the penguin

Summary

Chapter 2: Finishing the Perky Penguin 2D Game

Adding Particle Systems

Camera management

Prefabs and level management

Summary

Chapter 3: Adding Player Character for an Action Fighting Game

Configuring Project for 3D Games in Unity

Importing 3D models

Applying textures and materials

Generic and humanoid rigs

Humanoid animation using Unity

Creating layer character for the fighting game

Summary

Chapter 4: Enemy Characters with AI

Importing the player model

Player Animation Controller

Scripting player controls

Adding an enemy character

Enemy behavior and AI

Finalizing the fight

Summary

Chapter 5: Gameplay, UI, and Effects

Finishing up gameplay

Understanding Unity uGUI

Adding GUI for health and gameover

Introduction to Particle Effects

Creating confetti Particle Effect

Summary

Chapter 6: GameScene and SceneFlow

Adding buttons to the startScene

Organizing the folder structure

Adding a game restart button in the startScene

Adding a pause button to the startScene

Adding a main menu button to the startScene

Creating MainMenu scene

Summary

Chapter 7: Gamestats, Social, IAP, and Ad Integration

Running the app on the device/ emulator

Android Developer Console

Adding achievements in the game

Saving game stats

Ad integration

In-App purchasing

Adding social media integration

Summary

Chapter 8: Sound, Finishing Touches, and Publishing

Adding sound

Handling multiple resolutions

Optimizing the APK

Preparing the build for publishing

Publishing the game

Summary

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

Authors

Siddharth Shekar

Siddharth Shekar is a game developer with over 5 years of experience in the game development industry and 11 years of experience in C++, C#, and other programming languages. He is adept at graphics libraries and game engines such as Unity and Unreal Engine. He has also published games on the app stores of iOS, Android, Amazon, and Windows.

Siddharth is the author of the books Learning Cocos2d-x Game Development, Learning iOS 8 Game Development Using Swift, and Cocos2d Cross-Platform Game Development Cookbook and the technical reviewer for iOS Programming Cookbook, all by Packt Publishing.

Currently, he is a lecturer at the games department at Media Design School, Auckland, New Zealand. He teaches graphics programming and PlayStation 4/PS Vita native game development and mentors final year production students.

To know more about Media Design School on their website. You can also find Siddharth on Twitter at @sidshekar.

Wajahat Karim

Wajahat Karim is a seasoned mobile app and game developer with extensive experience in diversified technologies, as well as more than 7 years of software development experience.

Wajahat received his information and communication systems engineering degree from the NUST School of Electrical Engineering and Computer Sciences (SEECS), Islamabad, Pakistan. He has been working on games since he was 14 years old and is skilled in many platforms, including Android SDK, AndEngine, Adobe Flash, Adobe AIR, Game Maker, and Unity3D.

He is skilled, not only in programming and coding, but also in computer graphic designing tools such as Adobe Photoshop, Adobe Illustrator, Adobe Flash, and Autodesk Maya. Recently, he also worked with the government of Oman in Muscat, to create a real-time election monitoring app for Android and iOS for their Shura Elections, 2015. He has run multiple startups from time to time and has also worked in a virtual reality and augmented reality startup.

Currently, besides being a full-time development manager at a multinational company, he is working with a startup that allows Android developers to boost their app growth and reward their users through in-app perks.

Wajahat has deep passion in game development, entrepreneurship, and writing. He has previously coauthored the book Learning Android Intents by Packt Publishing.

Alerts & Offers

Series & Level

We understand your time is important. Uniquely amongst the major publishers, we seek to develop and publish the broadest range of learning and information products on each technology. Every Packt product delivers a specific learning pathway, broadly defined by the Series type. This structured approach enables you to select the pathway which best suits your knowledge level, learning style and task objectives.

Learning

As a new user, these step-by-step tutorial guides will give you all the practical skills necessary to become competent and efficient.

Beginner's Guide

Friendly, informal tutorials that provide a practical introduction using examples, activities, and challenges.

Essentials

Fast paced, concentrated introductions showing the quickest way to put the tool to work in the real world.

Cookbook

A collection of practical self-contained recipes that all users of the technology will find useful for building more powerful and reliable systems.

Blueprints

Guides you through the most common types of project you'll encounter, giving you end-to-end guidance on how to build your specific solution quickly and reliably.

Mastering

Take your skills to the next level with advanced tutorials that will give you confidence to master the tool's most powerful features.

Starting

Accessible to readers adopting the topic, these titles get you into the tool or technology so that you can become an effective user.

Progressing

Building on core skills you already have, these titles share solutions and expertise so you become a highly productive power user.