views:

177

answers:

2

Hi everyone,

I just finished my concept for an iphone app. I have a main program and in that program I want to start a game.

MAIN PROGRAM (BUTTON 1 / BUTTON 2 / START GAME) | | Cocos2d Game

Is this possible? To use cocos2D in a normal "iphone app"???

Thanks so much!!!

+1  A: 

You can certainly create a game with your requirements in Cocos2D. You might want to ask some follow-up questions over at the Cocos2D forums and read through their documentation.

Rob Segal
+1  A: 

It is definitely possible to mix UIKit with Cocos2d. Usually people accomplish this by putting their UIKit views inside a Cocos2d layer. It sounds like you want to embed the Cocos2d game inside a UIKit view instead. This should be possible, but I am unsure of the specifics involved. Try looking at -(BOOL)attachInView:(UIView *) view in CCDirector.

Note that Cocos2d uses OpenGL and there are possible performance issues when mixing OpenGL and UIKit. Pausing Cocos2d when using the other part of your application will help.

Colin Gislason