Unity Android Game Development by Example Beginner's Guide
eBook - ePub

Unity Android Game Development by Example Beginner's Guide

  1. 320 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Unity Android Game Development by Example Beginner's Guide

Book details
Book preview
Table of contents
Citations

About This Book

In Detail

Powerful and continuing to grow, the mobile market has never been bigger and more demanding of great games. Android continues to prove itself as a strong contender in this challenging market. With Unity 3D, great games can be made for Android quickly and easily. With its great deployment system, the Android platform is now only one click away.

Unity Android Game Development by Example Beginner's Guide dives straight into making real, fully-functional games, with hands-on examples and step-by-step instructions to give you a firm grounding in Unity 3D and Android. Everything necessary for creating a complete gaming experience is covered and detailed throughout the course of this book.

Using clear and practical examples that progressively build upon each other, this book guides you through the process of creating games in Unity for Android.

Start by learning about all the great features that Unity and Android have to offer. Next, create a Tic-Tac-Toe game while learning all about interfaces. After that, learn about meshes, materials, and animations with the creation of a tank battle game. You will then learn how to expand your game's environment with the addition of shadows and a skybox. Adding on this, you will also learn how to expand the tank battle by creating enemies and using path finding to chase the player. Next, explore touch and tilt controls with the creation of a space fighter game. Then, learn about physics while recreating the most popular mobile game on the market. You will then expand the space fighter game with the addition of all the special effects that make a game great. Finally, complete your experience by learning the optimization techniques required to keep your games running smoothly.

While Unity is available for both Mac and Windows, the book is presented working from a Windows environment. Programming in Unity is possible in C#, JavaScript, and Boo. This book will be working in C# and the final projects will be provided in C# and JavaScript.

From nothing to a fully-featured mobile game, Unity Android Game Development by Example Beginner's Guide takes you through everything it takes to create your next game for the Android platform.

Approach

Unity Android Game Development by Example Beginner's Guide consists of different game application examples. No prior experience with programming, Android, or Unity is required. You will learn everything from scratch and will have an organized flow of information specifically designed for complete beginners to Unity.

Who this book is for

Great for developers new to Unity, Android, or both, this book will walk you through everything you need to know about game development for the Android mobile platform. No experience with programming, Android, or Unity is required. Most of the assets used in each chapter project are provided with the book, but it is assumed that you have some access to basic image and model creation software. You will also need access to an Android powered device.

Frequently asked questions

Simply head over to the account section in settings and click on β€œCancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Unity Android Game Development by Example Beginner's Guide by Thomas Finnegan in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in C++. We have over one million books available in our catalogue for you to explore.

Information

Year
2013
ISBN
9781849692014
Edition
1

Unity Android Game Development by Example Beginner's Guide


Table of Contents

Unity Android Game Development by Example Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Saying Hello to Unity and Android
Understanding what makes Unity great
Understanding what makes Android great
Understanding how Unity and Android work together
Differences between Pro and Basic
License comparison overview
Setting up the development environment
Time for action – installing the JDK
What just happened?
Time for action – installing the Android SDK
What just happened?
Time for action – installing Unity 3D
What just happened?
Optional code editor
Connecting to a device
Time for action – simple device connection
What just happened?
Time for action – connecting trickier devices
What just happened?
Unity Remote
Building a simple application
Time for action – Hello World
What just happened?
Have a go hero – working ahead
Summary
2. Looking Good – Graphical Interface
Creating a Tic-tac-toe game
Time for action – creating Tic-tac-toe
What just happened?
Finishing the game
Time for action – finish creating the game
What just happened?
GUI Skins and GUI Styles
A prettier form of Tic-tac-toe
Time for action – styling the game
What just happened?
Have a go hero – backgrounds
Dynamic positioning
Time for action – the dynamic GUI
What just happened?
Have a go hero – scaling menus
A better way to build to device
Time for action – build and run
What just happened?
Have a go hero – single player mode
Summary
3. The Backbone of Any Game – Meshes, Materials, and Animations
Setting up
Time for action – the setup
What just happened?
Importing the meshes
Time for action – importing the tank
What just happened?
Tank import settings
Setting up the tank
Time for action – creating the tank
What just happened?
Time for action – keeping score
What just happened?
Time for action – controlling the chassis
What just happened?
Time for action – controlling the turret
What just happened?
Time for action – putting the pieces together
What just happened?
Have a go hero – cannon alignment
Creating the materials
Time for action – creating the city
What just happened?
Have a go hero – decorating the city
Time for action – moving treads
What just happened?
Have a go hero – turning with the treads
Animations
The target's animations
Time for action – setting up target's animations
What just happened?
State machines
Time for action – creating the target state machine
What just happened?
Time for action – scripting the target
What just happened?
Creating the prefab
Time for action – creating the target
What just happened?
Have a go hero – more targets
Ray tracing to shoot
Time for action – simple shooting
What just happened?
Have a go hero – better GUI
Summary
4. Setting the Stage – Camera Effects and Lighting
The camera effects
Skyboxes and distance fog
Time for action – adding a skybox and distance fog
What just happened?
Target indicator
Time for action – creating the pointer
What just happened?
Time for action – controlling the indicator
What just happened?
Time for action – working with a second camera
What just happened?
Have a go hero – adjusting the position
Turbo boost
Time for action – using the boost effect
What just happened?
Have a go hero – styling and control
Lights
Time for action – adding more lights
What just happened?
Lightmaps
Time for action – creating a lightmap
What just happened?
Have a go hero – reason and speed
Cookies
Time for action – applying headlights
What just happened?
Have a go hero – adding a switch
Blob shadow
Time for action – a tank with a shadow
What just happened?
Have a go hero – making it square
Summary
5. Getting Around – Pathfinding and AI
Understanding AI and pathfinding
The NavMesh
Time for action – creating the NavMesh
What just happened?
Have a go hero – creating extra obstacles
The NavMeshAgent component
Time for action – creating the enemy
What just happened?
The chase
Time for action – the player is over here
What just happened?
Time for action – chasing the player
What just happened?
Have a go hero – adding shadow
Being attacked
Time for action – getting ready to fire
What just happened?
Have a go hero – player feedback
Attacking the enemy
Time for action – giving it a weakness
What just happened?
Have a go hero – coloring the enemy
Spawning
Time for action – creating spawns
What just happened?
Have a go hero – two for one
Pop Quiz – understanding enemies
Summary
6. Specialties of the Mobile Device – Touch and Tilt
Setting up
Time for action – creating the project
What just happened?
Controlling with tilt
Time for action – steering the space ship
What just happened?
Making things move in space
Time for action – flying asteroids
What just happened?
Adding space collisions
Time for action – adding collisions
What just happened?
Have a go hero – adding points
Creating the enemy
Time for action – adding an enemy ship
What just happened?
Have a go hero – skybox and fog
Controlling with touch
Time for action – touch to shoot
What just happened?
Have a go hero – healthy ships
Spawning in space
Time for action – creating a space spawn
What just happened?
Have a go hero – more to spawn and shoot
Pop Quiz – understanding Android components
Summary
7. Throwing Your Weight Around – Physics and a 2D Camera
2D games in a 3D world
Time for action – preparing the world
What just happened?
Physics
Building blocks
Time for action – creating planks
What just happened?
Have a go hero – creating a stone block
Physics materials
Time for action – sliding and bouncing
What just happened?
Characters
The enemy
Time for action – creating the pigs
What just happened?
The ally
Time for action – creating the red bird
What just happened?
Controls
Attacking
Time for action – creating the slingshot
What just happened?
Watching
Time for action – controlling the camera
What just happened?
Have a go hero – more levels
A better background
Time for action – creating the parallax background
What just happened?
Have a go hero – dark of the night
The flock variety
The yellow bird
Time for action – creating the yellow ...

Table of contents

  1. Unity Android Game Development by Example Beginner's Guide