Hi everybody, it's been only a couple weeks that I'm entering the cocos2d world, so: I'm a nooooooooob!
I'm getting crazy about the game design pattern, I've never programmed a game before and i would need some advices.
I'm trying to make a Super Mario like platform, so I came out with the following solution:
- a GameScene : CCScene , a singleton class for keeping my current level layer, my input layer and my default game player
- a Level : CCLayer , a class which contains the generic instance variable of a level, such as an array of platforms, enemies, ground level, gravity etc.
- some class such as Level1 - Level2 which inherits from Level and are used as specific layer, so that i can load them into my GameScene singleton class
My question is: could this be a good game pattern design or not?