Continuemtreballant enels credits

This commit is contained in:
2024-11-24 20:21:46 +01:00
parent ad221243cb
commit a36120cf0c
15 changed files with 149 additions and 82 deletions

View File

@@ -27,7 +27,7 @@ Instructions::Instructions()
texture_(SDL_CreateTexture(renderer_, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, param.game.width, param.game.height)),
backbuffer_(SDL_CreateTexture(renderer_, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, param.game.width, param.game.height)),
text_(Resource::get()->getText("smb2")),
tiled_bg_(std::make_unique<TiledBG>((SDL_Rect){0, 0, param.game.width, param.game.height}, TiledBGMode::STATIC)),
tiled_bg_(std::make_unique<TiledBG>(param.game.game_area.rect, TiledBGMode::STATIC)),
fade_(std::make_unique<Fade>())
{
// Configura las texturas
@@ -36,7 +36,7 @@ Instructions::Instructions()
// Inicializa variables
section::name = section::Name::INSTRUCTIONS;
view_ = {0, 0, param.game.width, param.game.height};
view_ = param.game.game_area.rect;
// Inicializa objetos
fade_->setColor(fade_color.r, fade_color.g, fade_color.b);