convertit Asset i Audio
This commit is contained in:
@@ -55,7 +55,7 @@ Title::Title()
|
||||
Title::~Title()
|
||||
{
|
||||
Resource::get()->getTexture("smb2.gif")->setPalette(0);
|
||||
Audio::get()->stopAllSounds();
|
||||
Audio::get().stopAllSounds();
|
||||
}
|
||||
|
||||
// Actualiza las variables del objeto
|
||||
@@ -200,8 +200,8 @@ void Title::checkInput()
|
||||
{
|
||||
if ((state_ == TitleState::LOGO_FINISHED || ALLOW_TITLE_ANIMATION_SKIP) && !fade_->isEnabled())
|
||||
{
|
||||
Audio::get()->playSound("game_start.wav");
|
||||
Audio::get()->fadeOutMusic(1500);
|
||||
Audio::get().playSound("game_start.wav");
|
||||
Audio::get().fadeOutMusic(1500);
|
||||
switch (CONTROLLER.player_id)
|
||||
{
|
||||
case 1:
|
||||
@@ -322,7 +322,7 @@ void Title::updateFade()
|
||||
// Se ha pulsado para jugar
|
||||
section::name = section::Name::GAME;
|
||||
section::options = selection_;
|
||||
Audio::get()->stopMusic();
|
||||
Audio::get().stopMusic();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -339,7 +339,7 @@ void Title::updateState()
|
||||
if (game_logo_->hasFinished())
|
||||
{
|
||||
state_ = TitleState::LOGO_FINISHED;
|
||||
Audio::get()->playMusic("title.ogg");
|
||||
Audio::get().playMusic("title.ogg");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user