Using vector graphics in iPhone games

2020-05-21 04:29发布

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.

1条回答
Evening l夕情丶
2楼-- · 2020-05-21 05:03

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.

查看更多
登录 后发表回答