Book Image

Learning Unity Android Game Development

By : Thomas Finnegan
Book Image

Learning Unity Android Game Development

By: Thomas Finnegan

Overview of this book

<p>Unity 5 is a revolution in developing great games for Android that provides a great integration platform that works seamlessly with Unity 5, which means that games can be developed quicker and easier than ever before.</p> <p>Packed with a lot of examples, this book starts by helping you to understand all the great features that Unity 5 and Android have to offer. You will then create great games like Tic-Tac-Toe and the Monkey Ball game and also learn to enhance them. You will then expand the game's environment with lights and a skybox and learn to create enemies in a tank battle game. You will then explore the touch and tilt controls with the creation of a Monkey Ball clone.</p> <p>With the recreation of a game similar to Angry Birds, you will delve into configuring physics and options for a 2D game experience. Finally, you will get a complete experience by learning the optimization techniques needed to keep your games running smoothly.</p>
Table of Contents (16 chapters)
Learning Unity Android Game Development
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Camera effects


There are many great camera effects that you should add in order to give your game the last great finishing touch. In this chapter, we will be covering a few options that are easy to add. These will also give our tank game a finished look.

Skyboxes and distance fog

When a camera renders the frame of a game, it starts by clearing the screen. The default camera in Unity does this by coloring everything with a gradient, simulating the look of a skybox. All of the game's meshes are then drawn on top of this blank screen. While the gradient looks better than a solid color, it is still rather boring for an exciting battle of tanks. Luckily for us, Unity allows us to change the skybox. A skybox is just a fancy word for the series of images that form the background sky of any game. Distance fog works in conjunction with the skybox by easing the visual transition between models and the background.

The very first thing we need is a new skybox. We can create our own, however, Unity provides...