Quartz 2D 是 iPad 游戏的正确选择吗
我需要制作一个带有形状工具栏的游戏,可以在屏幕上拖动它,并具有以下功能
- 形状可以复制
- 形状可以拉伸和调整大小
- 形状可以旋转
- 形状颜色可以改变
- 形状可以切成两半,每一半都是现在它自己的形状
是 Quartz 2D 解决这个问题的正确方法吗?
I need to make a game with a tool bar of shapes that can be dragged on screen with the following functionality
- shapes can be copied
- shapes can be stretched and resized
- shapes can be rotated
- shape color can change
- shapes can be cut in half and each half is now its own shape
is Quartz 2D the right way to approach this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你需要更好地指定你的游戏功能,
我假设你的整个游戏都是在 Quarz 2D 中并且是针对 iPad 的。
我对此有两种看法:
1)如果你不需要 UIKit(表格、按钮和其他功能),如果你打算用 Quarz 2D 制作整个游戏,并且你计划使用 100% OpenGL ES,我会选择 100% OpenGL ES实时缩放、拖放等...我认为使用 OpenGL ES 你的帧速率会受到很多影响。
2)如果您需要 UIKit ,并且您的游戏很大程度上基于 UIKit ,Quarz2D 可以在那里占有一席之地,我认为 Quarz2D 最适合将动画/效果添加到 UIKit 丰富的应用程序中(请参阅“Reeder”和官方“Twitter”应用程序) ,这些应用程序由 Quarz2D 和 UIkit 提供支持。
I think you need to better specify your game features,
I'm assuming your whole game is in Quarz 2D and that it's for iPad.
I have two opinions about it:
1) If you don't need UIKit ( tables, buttons, and other features ), I would go 100% OpenGL ES, if you plan to make a whole game out of Quarz 2D, and you plan real-time scaling, drag and drop, etc... I think your frame rate will suffer a lot less using OpenGL ES.
2) If you need UIKit , and your game is heavily UIKit based, Quarz2D could have a place in there, I think Quarz2D is best suited for animations/effects into UIKit rich applications ( see "Reeder" and the official "Twitter" application), those apps are empowered by Quarz2D and UIkit.