Summary

In this chapter we looked at a technique to create actors in our game that are drawn programmatically. We created a new class call VectorRepresentation to handle the details of create a UIView for our code to draw on. We used these new vector-based actors to create a health bar and a simple bullet. The chapter continued by showing two simple examples of creating particle systems. The first example reused the art for the asteroids to create a sense of debris when we exploded the asteroids. The second example used vector-based particles to create acomets with glowing tails. The actors created in this and the previous chapter will be used to create a complete game in Chapter 10.

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.