Download - Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Transcript
Page 1: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Chapter 1:Saying Hello to Unity and Android

Setting up the development environment

Installing the Android SDK

Page 2: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 3: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Installing Unity 3D

Page 4: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 5: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Building a simple application

Hello World

Page 6: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 7: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 8: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 9: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Chapter 2: Looking Good – The Graphical Interface

Creating a Tic-tac-toe game

The game board

Page 10: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Creating the board

Page 11: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 12: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Controlling the game

Page 13: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Messing with fonts

Page 14: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Rotating devices

Page 15: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Menus and victory

Setting up the elements

Page 16: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Chapter 3: The Backbone of Any Game – Meshes, Materials, and Animations

Tank import settings

Page 17: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Revert and Apply buttons

Page 18: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Setting up the tank

The tank

Page 19: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Putting the pieces together

Page 20: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 21: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Creating materials

The city

Page 22: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Secondary Maps

Page 23: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Animations in Unity

Page 24: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 25: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 26: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

State machines to control animations in Unity

Target state machine

Page 27: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

.

Page 28: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 29: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Chapter 4: Setting the Stage – Camera Effects and Lighting

Camera effects

Skyboxes and distance fog

Page 30: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Target indicator

Creating the pointer

Page 31: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Working with a second camera

Page 32: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 33: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Turbo boost

Page 34: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Lights

Adding more lights

Page 35: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 36: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Lightmaps

Page 37: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 38: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Cookies

Page 39: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Blob shadows

Page 40: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 41: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Chapter 5: Getting Around – Pathfinding and AI

The NavMesh

Page 42: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 43: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 44: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

The NavMeshAgent component

Page 45: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Making the enemy chase the player

Chasing the player

Page 46: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 47: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Being attacked by the enemy

Page 48: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Spawning the enemy tanks

Page 49: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Chapter 6: Specialties of the Mobile Device – Touch and Tilt

A basic environment

Page 50: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Controlling with tilt

Page 51: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Following with the camera

Page 52: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Adding the monkey

Page 53: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Keeping the monkey on the board

Winning and losing the game

Page 54: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Putting together the complex environment

Page 55: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 56: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Adding bananas

Page 57: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Collecting bananas with touch

Page 58: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Chapter 7: Throwing Your Weight Around – Physics and a 2D Camera

2D games in a 3D world

Setting up the development environment

Page 59: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Physics

Building blocks

Page 60: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Characters

Creating the enemy

Page 61: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Controls

Attacking with a slingshot

Page 62: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Creating the parallax background

Page 63: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Adding more birds

The black bird

Page 64: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Level selection

Page 65: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Chapter 8: Special Effects – Sound and Particles

Understanding audio

Import settings

Page 66: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Audio Source

Page 67: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 68: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Understanding particle systems

Particle system settings

Page 69: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 70: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 71: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 72: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Creating dust trails

Page 73: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 74: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Putting it together

Exploding bananas

Page 75: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Chapter 9: Optimization

Minimizing the application footprint

Editor log

Page 76: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Asset compression

Model tab

Page 77: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

The Rig tab

The Animations tab

Textures

Page 78: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Audio

Player settings

Rendering

Page 79: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Optimization

Page 80: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Tracking performance

Editor statistics

Page 81: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

The Profiler

Tracking script performance

Page 82: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK

Minimizing lag

Occlusion

Page 83: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK
Page 84: Chapter 1:Saying Hello to Unity and Android - Packt · Chapter 1:Saying Hello to Unity and Android Setting up the development environment Installing the Android SDK