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

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

Java - Returning an array from a method to main -