开发者

Using vector graphics in iPhone games

开发者 https://www.devze.com 2023-02-16 22:04 出处:网络
I\'m Flash/AS3 developer and I\'m wondering how some iPhone developer开发者_JAVA技巧s use vector assets in their games.

I'm Flash/AS3 developer and I'm wondering how some iPhone developer开发者_JAVA技巧s 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消