Quartz 2D 是 iPad 游戏的正确选择吗

发布于 2024-09-05 04:19:50 字数 191 浏览 0 评论 0原文

我需要制作一个带有形状工具栏的游戏,可以在屏幕上拖动它,并具有以下功能

  1. 形状可以复制
  2. 形状可以拉伸和调整大小
  3. 形状可以旋转
  4. 形状颜色可以改变
  5. 形状可以切成两半,每一半都是现在它自己的形状

是 Quartz 2D 解决这个问题的正确方法吗?

I need to make a game with a tool bar of shapes that can be dragged on screen with the following functionality

  1. shapes can be copied
  2. shapes can be stretched and resized
  3. shapes can be rotated
  4. shape color can change
  5. shapes can be cut in half and each half is now its own shape

is Quartz 2D the right way to approach this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

秋千易 2024-09-12 04:19:50

我认为你需要更好地指定你的游戏功能,

我假设你的整个游戏都是在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文