Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using vector graphics in iPhone games

I'm Flash/AS3 developer and I'm wondering how some iPhone developers use vector assets in their games.

For example, "Lil' Pirates": this games looks like vector-based, it's zooming and unzooming easily, but I can't get any information about using vector assets at iOS.

like image 309
Spyer Avatar asked Mar 12 '11 14:03

Spyer


1 Answers

Quartz 2D is a pretty lightweight framework for vector based graphics. It's very well documented...

Quartz Documentation

In particular I'd pay particular notice to layering and performance...

Quartz Layering and Performance

If performance is a worry I'd also have a read through the core animation documentation. Core animation uses CALayers to cache vectors drawn with Quartz to in-memory bitmaps. These CALayers can then be transformed and translated through the animation APIs. If you intend to perform a lot of drawing this is the route I would recommend.

like image 111
mmccomb Avatar answered Nov 15 '22 21:11

mmccomb