Singletonejada la classe Input

This commit is contained in:
2024-09-28 14:19:00 +02:00
parent fa82758ce1
commit 2767696a3f
19 changed files with 87 additions and 44 deletions

View File

@@ -5,13 +5,13 @@
#define GAME_OVER_COUNTER 350
// Constructor
Game::Game(int playerID, int currentStage, bool demo, Input *input, JA_Music_t *music)
Game::Game(int playerID, int currentStage, bool demo, JA_Music_t *music)
{
// Copia los punteros
screen = Screen::get();
asset = Asset::get();
this->input = input;
this->music = music;
asset = Asset::get();
input = Input::get();
screen = Screen::get();
renderer = screen->getRenderer();
// Pasa variables