Singletonejada la classe Input
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
#include "options.h"
|
||||
|
||||
// Constructor
|
||||
Title::Title(Input *input, JA_Music_t *music)
|
||||
Title::Title(JA_Music_t *music)
|
||||
{
|
||||
// Copia las direcciones de los punteros y objetos
|
||||
this->input = input;
|
||||
this->music = music;
|
||||
input = Input::get();
|
||||
asset = Asset::get();
|
||||
screen = Screen::get();
|
||||
SDL_Renderer *renderer = screen->getRenderer();
|
||||
@@ -29,7 +29,7 @@ Title::Title(Input *input, JA_Music_t *music)
|
||||
gameLogo = new GameLogo(param.game.gameArea.centerX, param.title.titleCCPosition);
|
||||
gameLogo->enable();
|
||||
|
||||
defineButtons = new DefineButtons(input, text2);
|
||||
defineButtons = new DefineButtons(text2);
|
||||
|
||||
// Inicializa los valores
|
||||
init();
|
||||
|
||||
Reference in New Issue
Block a user