Don melitonada la classe Asset
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
#include "options.h"
|
||||
|
||||
// Constructor
|
||||
Title::Title(Asset *asset, Input *input, JA_Music_t *music)
|
||||
Title::Title(Input *input, JA_Music_t *music)
|
||||
{
|
||||
// Copia las direcciones de los punteros y objetos
|
||||
this->input = input;
|
||||
this->asset = asset;
|
||||
this->music = music;
|
||||
asset = Asset::get();
|
||||
screen = Screen::get();
|
||||
SDL_Renderer *renderer = screen->getRenderer();
|
||||
|
||||
@@ -26,7 +26,7 @@ Title::Title(Asset *asset, Input *input, JA_Music_t *music)
|
||||
|
||||
tiledbg = new Tiledbg(asset->get("title_bg_tile.png"), {0, 0, param.game.width, param.game.height}, TILED_MODE_RANDOM);
|
||||
|
||||
gameLogo = new GameLogo(asset, param.game.gameArea.centerX, param.title.titleCCPosition);
|
||||
gameLogo = new GameLogo(param.game.gameArea.centerX, param.title.titleCCPosition);
|
||||
gameLogo->enable();
|
||||
|
||||
defineButtons = new DefineButtons(input, text2);
|
||||
|
||||
Reference in New Issue
Block a user