How they did it

The pie clock involves a little sleight of hand. Here are the pieces that make up the clock:

How they did it

It's a bit like a sandwich. We start by drawing the blue background. Then, we layer on the two yellow half-moon pieces. To make the clock look pretty, we apply the lovely, shiny gloss picture in front of all these pieces.

How they did it

We rotate the right half-moon piece halfway around the circle to make the slice of yellow time appear to grow smaller and smaller.

At the halfway point, we slap a half-moon section of the blue background on top of everything, ...

Get Unity 4.x Game Development by Example Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.