migrant a SDL3
This commit is contained in:
@@ -24,7 +24,11 @@ Logo::Logo()
|
||||
section::name = section::Name::LOGO;
|
||||
dest_.x = param.game.game_area.center_x - jail_texture_->getWidth() / 2;
|
||||
dest_.y = param.game.game_area.center_y - jail_texture_->getHeight() / 2;
|
||||
since_sprite_->setPosition({(param.game.width - since_texture_->getWidth()) / 2, 83 + jail_texture_->getHeight() + 5, since_texture_->getWidth(), since_texture_->getHeight()});
|
||||
since_sprite_->setPosition(SDL_FRect{
|
||||
static_cast<float>((param.game.width - since_texture_->getWidth()) / 2),
|
||||
static_cast<float>(83 + jail_texture_->getHeight() + 5),
|
||||
static_cast<float>(since_texture_->getWidth()),
|
||||
static_cast<float>(since_texture_->getHeight())});
|
||||
since_sprite_->setY(dest_.y + jail_texture_->getHeight() + 5);
|
||||
since_sprite_->setSpriteClip(0, 0, since_texture_->getWidth(), since_texture_->getHeight());
|
||||
since_texture_->setColor(0x00, 0x00, 0x00);
|
||||
@@ -181,7 +185,7 @@ void Logo::render()
|
||||
void Logo::run()
|
||||
{
|
||||
// Detiene la música
|
||||
JA_FadeOutMusic(300);
|
||||
/*JA_FadeOutMusic(300);*/
|
||||
|
||||
while (section::name == section::Name::LOGO)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user