Skip to content

Commit e1e82e8

Browse files
author
Tr1NgleDev
committed
positions real
1 parent a2b47dc commit e1e82e8

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

Classes/AppDelegate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ bool AppDelegate::applicationDidFinishLaunching()
113113
glView = GLViewImpl::createWithRect(
114114
"OpenGD", ax::Rect(0, 0, 1280, 720), 1.f, true);
115115
#else
116-
glView = GLViewImpl::create("OpenGD", true);
116+
glView = GLViewImpl::create("OpenGD");
117117
#endif
118118

119119
/*

Classes/LevelPage.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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;

Classes/LevelSelectLayer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ bool LevelSelectLayer::init()
138138
btnMenu->addChild(leftBtn);
139139

140140
//leftBtn->setScale(2.0f);
141-
leftBtn->setPosition(btnMenu->convertToNodeSpace({0 + 25.0f, winSize.height / 2}));
141+
leftBtn->setPosition(btnMenu->convertToNodeSpace({ 25.0f, winSize.height / 2 }));
142142

143143
auto right = Sprite::createWithSpriteFrameName(controller ? "controllerBtn_DPad_Right_001.png" : "navArrowBtn_001.png");
144144

@@ -161,7 +161,7 @@ bool LevelSelectLayer::init()
161161

162162
backMenu->addChild(backBtn);
163163

164-
backMenu->setPosition({0 + 25.0f, 320 - 22.0f});
164+
backMenu->setPosition({ 0 + 25.0f, winSize.height - 22.0f });
165165

166166
// //GM->0x298 = 0;
167167

0 commit comments

Comments
 (0)