How do i use cocos2d with Xcode?

元气小坏坏 提交于 2019-12-22 16:47:07

问题


I downloaded the lastest version of cocos2d but I am confused as to how to use it with my current project. Can anyone show me how to use it with xcode. I'm looking to design a 2D maze. Do i have to import something ? Any sort of help would be appreciated.


回答1:


Yes, you need to drag the cocos2d files into your project, then they will be available.

This is a very helpful step-by-step resource on how to do that.

http://monoclestudios.com/cocos2d_whitepaper.html

As far as designing your game, get started, play around, and look at the sample code. There are also very helpful folks on the message board.

http://www.cocos2d-iphone.org/forum/

Good luck!




回答2:


For the latest version of Cocos2D-iPhone (0.8.1) I've put together a tutorial at: http://www.antonmills.com/?p=233

It includes everything you need for setting up the Xcode template, adding sprites and a small animation loop in a Hello World type of application, might be helpful :)

also deffinitely check the forum John posted, very helpful lot :)

Cheers, anton.



来源:https://stackoverflow.com/questions/1256008/how-do-i-use-cocos2d-with-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!