Simple Movement

Simple Movement sets up the application to continuously update the position of a spaceship. The spaceship will move to any point the user taps, as shown in Figure 5–4.

Image

Figure 5–4. Simple Movement

In Figure 5–4, we see a spaceship from a top-down perspective with a star field in the background. When the user touches any point on the screen, the ship will animate to that point. This type of animation could easily be accomplished using the type of animations presented in the previous chapter, but this will provide us with a good starting point. In terms of views, what you are seeing in Figure 5–4, ignoring the top navigation bar, ...

Get Beginning iOS 5 Games Development: Using the iOS 5 SDK for iPad, iPhone, and iPod Touch 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.