September 2010
Beginner
384 pages
8h 49m
English
As per our agreement, all the pretty pictures are pre-drawn for you. Download the Unity assets package for this chapter. When you're ready to import it, click on Assets | Import Package… and find the .unitypackage file. Open it up, and thar she be! If only obtaining game graphics in a real production environment were this easy.
Let's get right to work by creating some code to make use of two of the graphics in the package a blue clock background bar, and a shiny yellow foreground bar that will slowly shrink as time marches on.
var isPaused : boolean = false; var startTime : float; //(in seconds) var timeRemaining : float; //(in seconds) ...
Read now
Unlock full access