iPhone 2D 应用程序建议
我需要为学校项目开发一个 Iphone 2D 应用程序。我没有对象 C 和 C++ 背景。我只是在线完成了 Iphone App 的开发过程。有什么建议可以快速构建 2D iPhone 应用程序吗?
我应该使用 Opengl-es 还是 Quartz?有没有什么框架可以帮助快速绘制二维直线和曲线?
提前致谢!
I need to develop a Iphone 2D app for school project. I don't have object C and C++ background. I just go through the Iphone App develop process on-line. Any suggestions to quickly build a 2D iphone app?
Should I must use either Opengl-es or Quartz? Is there any framework could help to quickly draw line and curve with 2D?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Cocos2d 也许? (尽管你需要学习一些 Objective-c)
如果你需要更多的矢量,GCDrawKit 也可能很好 -像东西
Cocos2d maybe? (though you will need to learn some objective-c)
GCDrawKit could be good too if you need more vector-like stuff
正如 Ben 所说,Cocos2d 是一个不错的选择。并且,为了 Cocos2D 进一步扩展它:
int -(void)draw 方法:
画一条线。
要绘制曲线,您可以在该网站上的 cocos2d 绘制方法中使用此功能:
http ://www.bit-101.com/blog/?p=2152
As Ben has said Cocos2d is a good option. And, to extend it a little further for Cocos2D:
int the -(void)draw method:
draws a line.
And to draw a curve you can use this function on this website in the cocos2d draw method:
http://www.bit-101.com/blog/?p=2152
“快速构建 2D iPhone 应用程序”将会很困难。为了正确地做到这一点,您确实需要了解一切如何协同工作,否则您可能会遇到大量错误和内存泄漏。也就是说,有一些库可以帮助您完成一些肮脏的工作。例如,有Unity游戏开发工具。我用过 3D 版本,在旧手机上运行速度有点慢,但 2D 版本应该运行得更快。还有其他可用的开发工具,只需在谷歌上搜索一个看起来很吸引人的工具即可。
It's going to be difficult to "quickly build a 2D iphone app". To do it correctly, you really need to understand how everything works together, or you're likely to have tons of bugs and memory leaks. That said, there are some libraries that can help you do some of the dirty work. For example, there is the Unity game development tool. I've used the 3D version, and it runs a bit slower on older phones, but the 2D version should run much faster. There are other dev tools available too, just search google for one that looks appealing.
首先从学习 Objective-C 开始。学习使用高级可可方法(例如 NSBezierPath)进行绘图,然后慢慢转向 Core Graphics(Quartz)。首先了解什么是图形上下文以及如何在其上绘制简单对象(即线条、方框、圆形等)。
我想您可能想了解一些关于动画的知识,所以也了解一些关于核心动画的知识。
这是一个有趣的过程。祝你享受它。
Start off by learning objective-c first. Learn to draw using the high level cocoa methods such as NSBezierPath, then move slowly towards Core Graphics(Quartz). Begin by understanding what a graphics context is and how to draw simple objects onto it (i.e. lines, boxes, circles, etc).
I assume you might want to know a bit about animations so learn a bit about Core Animation too.
It's a fun process. Wish you enjoy it.