O'Reilly logo

Build iOS Games with Sprite Kit by Josh Smith, Jonathan Penn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Planning the Node Layout

Before we get started in code, let’s take a step back and imagine what we want to achieve. Otherwise, we could get lost trying to keep our brains organized as we calculate the position of everything we need to display. Figure 24, Sketching out the heads-up display shows a sketch representing what we’re aiming for.

images/HUD/overviewsketch.png
Figure 24. Sketching out the heads-up display

We’re using two labels as “titles” to describe what we’re displaying, and two labels as “values” underneath. We’ll need to lay them out on the left and right sides of the screen and remember to use number formatters so we get all the standard goodies, such as the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required