Classe Screen melitonada
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
#include <iostream>
|
||||
|
||||
// Constructor
|
||||
Instructions::Instructions(Screen *screen, Asset *asset, Input *input, JA_Music_t *music)
|
||||
Instructions::Instructions(Asset *asset, Input *input, JA_Music_t *music)
|
||||
{
|
||||
// Copia los punteros
|
||||
this->screen = screen;
|
||||
screen = Screen::get();
|
||||
this->asset = asset;
|
||||
this->input = input;
|
||||
this->music = music;
|
||||
@@ -16,7 +16,7 @@ Instructions::Instructions(Screen *screen, Asset *asset, Input *input, JA_Music_
|
||||
// Crea objetos
|
||||
eventHandler = new SDL_Event();
|
||||
text = new Text(asset->get("smb2.gif"), asset->get("smb2.txt"), renderer);
|
||||
tiledbg = new Tiledbg(renderer, asset, {0, 0, param.game.width, param.game.height}, TILED_MODE_STATIC);
|
||||
tiledbg = new Tiledbg(asset->get("title_bg_tile.png"), {0, 0, param.game.width, param.game.height}, TILED_MODE_STATIC);
|
||||
fade = new Fade(renderer);
|
||||
|
||||
// Crea un backbuffer para el renderizador
|
||||
|
||||
Reference in New Issue
Block a user