Simple question about a cocos2d based game template
Posted
by
Zishan
on Game Development
See other posts from Game Development
or by Zishan
Published on 2012-05-19T17:46:37Z
Indexed on
2012/06/19
9:25 UTC
Read the original article
Hit count: 330
cocos2d-iphone
|cocos2d
I am learning a cocos2d based Game template tutorial from here and now I am at this point of the tutorial. My question is, how can i run 30 different scenes in 30 different levels of 5 chapter? Now I am using this
switch (gameData.selectedLevel) {
case 1:
[SceneManager goChapter1Level1Scene];
break;
(... snip a whole lot of lines...)
case 30:
[SceneManager goChapter5Level6Scene];
break;
default: break;
}
in the "- (void) onPlay: (CCMenuItemImage*) sender" method. But it work only for 6 levels scene of chapter1. Other 4 chapters levels are show as same as 1st chapter levels scene. they are not show their own level scene. can any one please teach me, how can I do this stuff using this game template?
© Game Development or respective owner