Skip to content

Commit

Permalink
Remove the stdcout
Browse files Browse the repository at this point in the history
  • Loading branch information
iArtie committed Mar 2, 2024
1 parent b71cd68 commit 59ea3bf
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/MeltdownSelectLevelLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ bool MeltdownSelectLevelLayer::init(int page) {
backMenu->setPosition(ccp(director->getScreenLeft() + 25.f, director->getScreenTop() - 22.f));
setKeyboardEnabled(true);
setKeypadEnabled(true);
log::info("screen top: {}", director->getScreenTop());
/*log::info("screen top: {}", director->getScreenTop());*/
//scrollLayerMoved({0, 0});

cocos2d::CCMenu* infoMenu = cocos2d::CCMenu::create();
Expand Down Expand Up @@ -371,7 +371,7 @@ void MeltdownSelectLevelLayer::onInfo(CCObject* sender) {
levellol = 2;
}

std::cout << levellol << std::endl;
/*std::cout << levellol << std::endl;*/
auto levelObject = m_mainLevels->objectAtIndex(levellol);
// Verificar si el objeto es de tipo GJGameLevel
if (auto gameLevel = dynamic_cast<GJGameLevel*>(levelObject)) {
Expand Down
4 changes: 2 additions & 2 deletions src/SubZeroSelectLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ bool SubZeroSelectLayer::init(int page) {
backMenu->setPosition(ccp(director->getScreenLeft() + 25.f, director->getScreenTop() - 22.f));
setKeyboardEnabled(true);
setKeypadEnabled(true);
log::info("screen top: {}", director->getScreenTop());
/* log::info("screen top: {}", director->getScreenTop());*/
//scrollLayerMoved({0, 0});

cocos2d::CCMenu* infoMenu = cocos2d::CCMenu::create();
Expand Down Expand Up @@ -427,7 +427,7 @@ void SubZeroSelectLayer::onInfo(CCObject* sender) {
levellol = 2;
}

std::cout << levellol << std::endl;
/*std::cout << levellol << std::endl;*/
auto levelObject = m_mainLevels->objectAtIndex(levellol);
// Verificar si el objeto es de tipo GJGameLevel
if (auto gameLevel = dynamic_cast<GJGameLevel*>(levelObject)) {
Expand Down
24 changes: 12 additions & 12 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ class $modify(PauseLayer) {
auto BG = (CCSprite*)dashlandScene->getChildren()->objectAtIndex(0);
switch (subzero) {
case 1:
std::cout << "on PressStart" << std::endl;
/*std::cout << "on PressStart" << std::endl;*/
page = 0;
if (isSubzero == 1)
{
Expand All @@ -503,7 +503,7 @@ class $modify(PauseLayer) {
}
break;
case 2:
std::cout << "on Nock Em" << std::endl;
/*std::cout << "on Nock Em" << std::endl;*/
page = 1;
if (isSubzero == 1)
{
Expand All @@ -519,7 +519,7 @@ class $modify(PauseLayer) {
}
break;
case 3:
std::cout << "on Power Trip" << std::endl;
/*std::cout << "on Power Trip" << std::endl;*/
page = 2;
if (isSubzero == 1)
{
Expand Down Expand Up @@ -553,7 +553,7 @@ class $modify(PauseLayer) {
}
break;
case 5:
std::cout << "on FrontLines" << std::endl;
/*std::cout << "on FrontLines" << std::endl;*/
page = 4;
/*MeltdownScene->instantPage(sender, 2);*/
if (isSubzero == 1)
Expand Down Expand Up @@ -598,7 +598,7 @@ class $modify(PauseLayer) {
dashlandScene->instantPage(sender, 2);
break;
default:
std::cout << "on a common level" << std::endl;
/*std::cout << "on a common level" << std::endl;*/
page = 10;
break;
}
Expand Down Expand Up @@ -652,7 +652,7 @@ class $modify(EndLevelLayer) {

switch (subzero) {
case 1:
std::cout << "on PressStart" << std::endl;
/*std::cout << "on PressStart" << std::endl;*/
page = 0;
if (isSubzero == 1)
{
Expand All @@ -668,7 +668,7 @@ class $modify(EndLevelLayer) {
}
break;
case 2:
std::cout << "on Nock Em" << std::endl;
/*std::cout << "on Nock Em" << std::endl;*/
page = 1;
if (isSubzero == 1)
{
Expand All @@ -684,7 +684,7 @@ class $modify(EndLevelLayer) {
}
break;
case 3:
std::cout << "on Power Trip" << std::endl;
/*std::cout << "on Power Trip" << std::endl;*/
page = 2;
if (isSubzero == 1)
{
Expand Down Expand Up @@ -716,7 +716,7 @@ class $modify(EndLevelLayer) {
}
break;
case 5:
std::cout << "on FrontLines" << std::endl;
/*std::cout << "on FrontLines" << std::endl;*/
page = 4;
/*MeltdownScene->instantPage(sender, 2);*/
if (isSubzero == 1)
Expand Down Expand Up @@ -762,7 +762,7 @@ class $modify(EndLevelLayer) {
dashlandScene->instantPage(sender, 2);
break;
default:
std::cout << "on a common level" << std::endl;
/*std::cout << "on a common level" << std::endl;*/
page = 10;
break;
}
Expand All @@ -783,9 +783,9 @@ class $modify(EndLevelLayer) {
class $modify(PlayLayer) {
bool init(GJGameLevel * level, bool useReplay, bool dontCreateObjects){

std::cout << level->m_levelID << std::endl;
/*std::cout << level->m_levelID << std::endl;*/

std::cout << level->m_levelString.c_str() << std::endl;
/*std::cout << level->m_levelString.c_str() << std::endl;*/
auto isSubzero = Mod::get()->getSavedValue<int>("onsubzero");
int subzero = 0;

Expand Down
4 changes: 2 additions & 2 deletions src/ownWorldSelectLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2308,7 +2308,7 @@ void ownWorldSelectLayer::onPlay(CCObject* sender) {
auto GLM = GameLevelManager::sharedState();
auto playLayer = PlayLayer::create(level, false, false);
FMODAudioEngine::sharedEngine()->playEffect("playSound_01.ogg");
std::cout << "level string:" << level->m_levelString.c_str() << std::endl;
/* std::cout << "level string:" << level->m_levelString.c_str() << std::endl;*/
CCScene* scene = CCScene::create();

scene->addChild(playLayer);
Expand Down Expand Up @@ -2622,7 +2622,7 @@ void ownWorldSelectLayer::onInfo(CCObject* sender) {
level21->m_coins = 0;
}

std::cout << levellol << std::endl;
/*std::cout << levellol << std::endl;*/

sLOLwshow2(level21);
}
Expand Down

0 comments on commit 59ea3bf

Please sign in to comment.