Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Unity iOS Game Development
Unity iOS Game Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Discounts
Free eBooks
Newsletters
Code Downloads, Errata and Support
PacktLib.PacktPub.com
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. What is Unity and why should I care?
Important preliminary points
What is Unity?
Getting a real application running on a device
Time for action — Loading a project
What just happened?
Time for action — Select iPhone as a target platform
What just happened?
Time for action — Publishing to our device
What just happened?
Pop quiz - The fundamentals
Summary
2. Getting Up and Running
Welcome home
Transform tools
Transform Gizmo Toggles
VCR Controls
Layers drop-down
Layout drop-down
Project view
Hierarchy view
Scene view
Game view
Inspector
Console view
Profiler view
Time for action — Creating a new layout
What just happened?
Time for action — Saving a new layout
What just happened?
Time for action — Deploying Unity Remote
What just happened?
Time for action — Testing our application using Unity Remote
What just happened?
Pop quiz - doing the thing
Summary
3. Hello World
Composing our first scene
Start with the basics
Time for action — Creating a scene
What just happened?
Time for action — Creating objects in a scene
What just happened?
Time for action — Let there be light
What just happened?
Time for action — Hello "World"
What just happened?
Time for action — Controling the camera
What just happened?
Time for action — Deploying to the iOS device
What just happened?
Summary
4. Unity Concepts
Basic concepts of Unity development
Asset
Time for action — Exporting asset packages
What just happened?
Time for action — Importing asset packages
What just happened?
Game Objects
Components
Time for action — Adding components to Game Objects
What just happened?
Transform
Time for action — Positioning, Rotating, and Scaling a Game Object
What just happened?
Camera
Camera properties
Near Clip
Far Clip
Field of View (FOV)
Camera projection types
Orthographic projection
Perspective projection
Lights
Directional light
Point light
Spot light
Lightmapping
Sound
Audio listener
Audio sources
Audio clips
Time for action — Adding audio clips
What just happened?
Scripts
Editors
Prefabs
Time for action — Creating prefabs
What just happened?
Scene
Summary
5. Scripting: Whose line is it anyway?
Important preliminary points
Unity Scripting Primer
Oh no! You've got Mono!
Common Language Infrastructure
Boo- more than a ghost in mario
What does a Boo script look like?
Should I choose Boo?
UnityScript/JavaScript — Relevant beyond the web
What does a JavaScript script look like?
Should I choose JavaScript?
C# The revenge of Microsoft
What does a C# script look like?
Should I choose C#?
Time for action — Creating and organizing scripts
What just happened?
Attaching scripts to Game Objects
Exposing variables in the Unity editor
Key scripting methods
iPhoneSettings
Screen orientation
Sleep mode
Device information
Time for action — Identifying the type of iOS
Identify our device information
Conditionally show splash screen
Dismiss the splash screen
What just happened?
Location services
Time for action — Changing state according to player location
Start the location services on our device
Expose variable to Unity editor
Poll the device location information
Get the weather for this location
What just happened?
Screen manipulation
Time for action — Rotating the screen
Identifying that the screen orientation has changed
Updating player orientation
What just happened?
iPhoneUtils
Playing movies
Is my application genuine?
Time for action — Yarr! There be pirates!
What just happened?
Accessing the camera
Summary
6. Our Game: Battle Cry!
Game Concept
Story
Interface
Control
Audio
Time for action — Project setup
What just happened?
Time for action — Building a game world
Unity Asset Store
What just happened?
Summary
7. Input: Let's Get Moving!
Input Capabilities
The technology of touch
Resistive technology
Capacitive technology
Infrared technology
Accelerometer
Gyroscope
Touch screen
Accelerometer/Gyroscope
Implementing Joysticks
Time for action — Getting oriented
What just happened?
Time for action — Implementing the joysticks
What just happened?
Moving around
Time for action — Implementing the camera control
What just happened?
Time for action — Animating the player character
Importing an animation
Animation splitting
Multiple files
What just happened?
Importing an animation
Time for action — Importing from Mixamo
What just happened?
Driving our character
Time for action — Driving our character
What just happened?
Time for action — Getting a driver's license with Root Motion Controller
What just happened?
Rotation via Accelerometer
Time for action — Updating upon device tilt
What just happened?
Shaking the device to perform a healing action
Time for action — Detecting a shake
Physician heal thyself
What just happened?
Summary
8. Multimedia
Important preliminary points
Audio capabilities
Playing sounds
Time for action — Adding ambient sounds
What just happened?
Time for action — Adding sounds to actions
What just happened?
Playing music
Time for action — The sound of music
What just happened?
Video capabilities
Time for action — Playing embedded video
What just happened?
Time for action — Streaming video
What just happened?
Summary
9. User Interface
Important preliminary points
Translating the design
Immediate mode game user interfaces
Time for action — Creating the menu background
What just happened?
Putting the menu on the screen
Time for action — Adding buttons to the GUI
What just happened?
A better way — UIToolkit
Time for action — Prime31 UIToolkit
What just happened?
Summary
10. Gameplay Scripting
Gunplay as gameplay
Time for action — Readying the weapon
What just happened?
Firing projectiles
Time for action — Adding a particle system
What just happened?
Let the animation drive
Animation Events
Time for action — Adding animation events
What just happened?
You are already dead
World Particle Colliders
Time for action — Detecting collisions
What just happened?
Playing with (rag) dolls
Time for action — Attaching a rag doll
What just happened?
Summary
11. Debugging and Optimization
Debugging
Time for action — Using breakpoints
What just happened?
Time for action — Debugging the application
What just happened?
Time for action — Stepping through the game
What just happened?
Profiling
Time for action — Fine tuning the application (Pro Versions)
What just happened?
Object pooling — Into the pool
Time for action — Optimizing with the object pool
What just happened?
Unleash the beast
Time for action — Generating Beast lightmaps
What just happened?
Summary
12. Commercialization: Make 'fat loot' from your Creation
Business model generation
Pure app sales
Advertising
In-App purchases
Marketplace component
Time for action — Readying your app for sale
What just happened?
Time for action — Adding iAds
What just happened?
In-App purchases
Subscription types
Delivery models
Time for action — Adding In-App purchases
What just happened?
Time for action — Adding content to the Unity Asset Store
What just happened?
Measuring success with iTunes Connect
Time for action — How is our game doing?
What just happened?
Summary
13. Pop quiz - Answers
Chapter 1
Chapter 2
← Prev
Back
Next →
← Prev
Back
Next →