I am a programmer new in iphone development.
I want to make a game for iPhone.
I am confused which is better for development of games, OpenGl or Cocos2d, and what is difference between these two?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
OpenGL is programming “at the metal”. Cocos2d is, effectively, a wrapper around OpenGL (and other technologies) that provides a higher level API. Cocos2d is more than that; there are also physics engines and other higher level tools available, too (there are the same available for OpenGL, too, really, but they are lower level, typically).
Personally, I would lean strongly to Cocos2d. There are some fantastic high level tutorials available and it is, in my experience, much easier to use than raw OpenGL.
If you are worried about performance, consider that the game that shipped will always outperform the game that is still in development….
Ray Wenderlich’s weblog has a long series of articles on programming with cocos2d. It is pretty awesome stuff.
http://www.raywenderlich.com/352/how-to-make-a-simple-iphone-game-with-cocos2d-tutorial