Book Image

Unity Android Game Development by Example Beginner's Guide

By : Thomas James Finnegan
Book Image

Unity Android Game Development by Example Beginner's Guide

By: Thomas James Finnegan

Overview of this book

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.
Table of Contents (17 chapters)
Unity Android Game Development by Example Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – installing the Android SDK


In order to actually develop and connect to our devices, we need to have the Android SDK installed. Having it fulfills two primary requirements. First, it makes sure we have the bulk of the latest drivers for recognizing devices. Second, we are able to use the ADB (Android Debug Bridge). ADB is the system used for actually connecting to and interacting with the device. The process of installing the Android SDK is given in the following steps:

  1. The latest version of the Android SDK can be found at http://developer.android.com/sdk/index.html, so open a web browser and go to the given site.

  2. Once there, scroll to the bottom and select USE AN EXISTING IDE.

  3. Follow that up by clicking on the Download the SDK Tools for Windows button.

  4. You will then be sent to a Terms and Conditions agreement. Read it if you prefer, but agree to it to continue and hit the download button to start downloading the installer.

  5. Once it has finished downloading, start it up.

  6. Hit the first Next button and the installer will try to find an appropriate version of the JDK. You will come to a page complaining about it, if you do not have it installed.

  7. If you skipped ahead and do not have the JDK installed, hit the Visit java.oracle.com button in the middle of the page and go back to the previous section for guidance on installing it. If you do have it, continue with the process.

  8. Hitting Next again will bring us to a page about selecting who to install the SDK for.

  9. Select Install for anyone using this computer, because the default install location is easier to get to for later purposes.

  10. Hit Next twice, followed by Install to install to the default location.

  11. Once it is done, hit Next and Finish to complete the installation of the Android SDK Manager.

  12. If the Android SDK Manager does not start right away, start it up. Either way, give it a moment to initialize. The SDK Manager makes sure that we have the latest drivers, systems, and tools for developing with the Android platform. But first, we have to actually install them.

  13. By default it should select a number of options to install. If not, select the latest Android API, 4.3 (API 18) as of the time of writing this, Android Support Library and Google USB Driver found in Extras. Be absolutely sure that Android SDK Platform-tools is selected. This one will be very important later. It actually includes the tools we need to connect to our device.

  14. Once everything is selected, hit Install packages in the bottom-right corner.

  15. The next screen is another set of license agreements. Every time a component is installed or updated through the SDK Manager, you have to agree to the license terms before it gets installed. Accept all of the licenses and hit Install to start the process.

  16. You can now sit back and relax. It takes a while for the components to be downloaded and installed. Once it is all done, you can close it out. We have completed the process, but you should occasionally come back to it. Periodically checking the SDK Manager for updates will make sure you are using the latest tools and API's.

What just happened?

We installed the Android SDK. Without it, we would be completely unable to do anything with the Android platform. Besides the long wait to download and install components, this was a pretty easy installation.