Singletonejant

Borrat menu.cpp que no estava gastantse...mmm.. desde mai
This commit is contained in:
2025-02-22 18:27:23 +01:00
parent e361d295c1
commit fc01676df2
38 changed files with 440 additions and 1751 deletions

View File

@@ -19,15 +19,13 @@
#include "options.h"
// Constructor
Ending::Ending(Resource *resource)
Ending::Ending()
: screen(Screen::get()),
renderer(Screen::get()->getRenderer()),
resource(Resource::get()),
asset(Asset::get()),
input(Input::get())
{
// Copia los punteros
this->screen = Screen::get();
this->renderer = Screen::get()->getRenderer();
this->resource = resource;
this->asset = Asset::get();
this->input = Input::get();
// Reserva memoria para los punteros a objetos
eventHandler = new SDL_Event();
text = new Text(resource->getOffset("smb2.txt"), resource->getTexture("smb2.png"), renderer);
@@ -122,8 +120,7 @@ void Ending::update()
// Actualiza el volumen de la musica
updateMusicVolume();
// Actualiza las notificaciones
screen->updateNotifier();
screen->update();
}
}