Completada la carga de menus desde fichero
This commit is contained in:
@@ -13,7 +13,7 @@ backgroundColor=48,48,64,192
|
|||||||
|
|
||||||
areElementsCenteredOnX=true
|
areElementsCenteredOnX=true
|
||||||
isCenteredOnX=true
|
isCenteredOnX=true
|
||||||
isCenteredOnY=false
|
centerX=160
|
||||||
|
|
||||||
selector_color=229,28,35,0
|
selector_color=229,28,35,0
|
||||||
selector_text_color=255,180,0
|
selector_text_color=255,180,0
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ Game::Game(SDL_Renderer *renderer, Screen *screen, Asset *asset, Input *input)
|
|||||||
section.subsection = SUBSECTION_GAME_PLAY;
|
section.subsection = SUBSECTION_GAME_PLAY;
|
||||||
|
|
||||||
musicEnabled = true;
|
musicEnabled = true;
|
||||||
debug = true;
|
debug = false;
|
||||||
musicEnabled = !debug;
|
musicEnabled = !debug;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,7 +117,7 @@ void Game::checkInput()
|
|||||||
if (input->checkInput(INPUT_BUTTON_2, REPEAT_FALSE))
|
if (input->checkInput(INPUT_BUTTON_2, REPEAT_FALSE))
|
||||||
{
|
{
|
||||||
debug = !debug;
|
debug = !debug;
|
||||||
/*musicEnabled = !debug;
|
musicEnabled = !debug;
|
||||||
if (musicEnabled)
|
if (musicEnabled)
|
||||||
{
|
{
|
||||||
JA_PlayMusic(music);
|
JA_PlayMusic(music);
|
||||||
@@ -125,7 +125,7 @@ void Game::checkInput()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
JA_StopMusic();
|
JA_StopMusic();
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (input->checkInput(INPUT_BUTTON_3, REPEAT_FALSE))
|
if (input->checkInput(INPUT_BUTTON_3, REPEAT_FALSE))
|
||||||
|
|||||||
@@ -214,6 +214,16 @@ bool Menu::setVars(std::string var, std::string value)
|
|||||||
x = std::stoi(value);
|
x = std::stoi(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (var == "centerX")
|
||||||
|
{
|
||||||
|
centerX = std::stoi(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (var == "centerY")
|
||||||
|
{
|
||||||
|
centerY = std::stoi(value);
|
||||||
|
}
|
||||||
|
|
||||||
else if (var == "y")
|
else if (var == "y")
|
||||||
{
|
{
|
||||||
y = std::stoi(value);
|
y = std::stoi(value);
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ Prog::Prog(std::string executablePath)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
section.name = SECTION_PROG_TITLE;
|
section.name = SECTION_PROG_LOGO;
|
||||||
}
|
}
|
||||||
input = new Input(asset->get("gamecontrollerdb.txt"));
|
input = new Input(asset->get("gamecontrollerdb.txt"));
|
||||||
screen = new Screen(window, renderer, options);
|
screen = new Screen(window, renderer, options);
|
||||||
|
|||||||
Reference in New Issue
Block a user