iphone - Universal Method for Levels -


is there way have method stores basic needs of level in game? ie - want every level have health bar, pause button, collision detection, etc. want way have of stuff every level of game needs , have easy way call @ once.

edit - also, way #import , @class need different level classes , scenes. how can this? ie - collision detection in different class, , want call in levels.

info - i'm developing cocos2d iphone

make base class level th stuff. inherit game levels base keep functionality.

to import create header everything.h. this:

#import "physics" #import "objects" #import "graphics" ... 

then import everything.h


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -