@@ -11,7 +11,7 @@ bool LevelPage::init(GJGameLevel* level)
1111 auto winSize = ax::Director::getInstance ()->getWinSize ();
1212
1313 auto normalBar = ax::Sprite::create (" GJ_progressBar_001-hd.png" );
14- normalBar->setPosition ({winSize.width / 2 , 130 });
14+ normalBar->setPosition ({ winSize.width / 2 , winSize. height / 2 . f - 30 });
1515 normalBar->setColor ({0 , 0 , 0 });
1616 normalBar->setOpacity (125 );
1717 addChild (normalBar, 3 );
@@ -28,7 +28,7 @@ bool LevelPage::init(GJGameLevel* level)
2828 normalBar->addChild (normalProgress);
2929
3030 auto practiceBar = ax::Sprite::create (" GJ_progressBar_001-hd.png" );
31- practiceBar->setPosition ({winSize.width / 2 , 80 });
31+ practiceBar->setPosition ({ winSize.width / 2 , winSize. height / 2 . f - 80 });
3232 practiceBar->setColor ({0 , 0 , 0 });
3333 practiceBar->setOpacity (125 );
3434 addChild (practiceBar, 3 );
@@ -45,23 +45,23 @@ bool LevelPage::init(GJGameLevel* level)
4545 practiceBar->addChild (practiceProgress);
4646
4747 auto normalText = ax::Label::createWithBMFont (" bigFont.fnt" , " Normal Mode" );
48- normalText->setPosition ({winSize.width / 2 , 150 });
48+ normalText->setPosition ({ winSize.width / 2 , winSize. height / 2 . f - 10 });
4949 normalText->enableShadow (ax::Color4B::BLACK, {0.2 , -0.2 });
5050 addChild (normalText, 4 );
5151
5252 auto practiceText = ax::Label::createWithBMFont (" bigFont.fnt" , " Practice Mode" );
53- practiceText->setPosition ({winSize.width / 2 , 100 });
53+ practiceText->setPosition ({ winSize.width / 2 , winSize. height / 2 . f - 60 });
5454 practiceText->enableShadow (ax::Color4B::BLACK, {0.2 , -0.2 });
5555 addChild (practiceText, 4 );
5656
5757 auto normalPerc = ax::Label::createWithBMFont (" bigFont.fnt" , " " );
58- normalPerc->setPosition ({winSize.width / 2 , 130 });
58+ normalPerc->setPosition ({ winSize.width / 2 , winSize. height / 2 . f - 30 });
5959 normalPerc->enableShadow (ax::Color4B::BLACK, {0.2 , -0.2 });
6060 normalPerc->setString (std::to_string ((int )level->_normalPercent ) + " %" );
6161 addChild (normalPerc, 4 );
6262
6363 auto practicePerc = ax::Label::createWithBMFont (" bigFont.fnt" , " " );
64- practicePerc->setPosition ({winSize.width / 2 , 80 });
64+ practicePerc->setPosition ({ winSize.width / 2 , winSize. height / 2 . f - 80 });
6565 practicePerc->enableShadow (ax::Color4B::BLACK, {0.2 , -0.2 });
6666 practicePerc->setString (std::to_string ((int )level->_practicePercent ) + " %" );
6767 addChild (practicePerc, 4 );
@@ -108,7 +108,7 @@ bool LevelPage::init(GJGameLevel* level)
108108 mainBtn->setScaleMultiplier (1 .1f );
109109 auto levelMenu = ax::Menu::create ();
110110 levelMenu->addChild (mainBtn);
111- levelMenu->setPosition ({ winSize.width / 2 .f , 220 });
111+ levelMenu->setPosition ({ winSize.width / 2 .f , winSize. height / 2 . f + 60 });
112112 addChild (levelMenu);
113113
114114 return true ;
0 commit comments