fp: Add entrance sounds for perry and game start
This commit is contained in:
parent
9ad3754829
commit
97a83b20f6
BIN
Data/Audio/game_start.ogg
(Stored with Git LFS)
Normal file
BIN
Data/Audio/game_start.ogg
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Data/Audio/perry_start.ogg
(Stored with Git LFS)
Normal file
BIN
Data/Audio/perry_start.ogg
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -449,6 +449,8 @@ void TELY_OS_DLLInit(TELY_OS *os)
|
|||||||
game->audio[FP_GameAudio_PortalDestroy] = os->funcs.load_audio(assets, DQN_STR8("Portal Destroy"), DQN_STR8("Data/Audio/portal_destroy.ogg"));
|
game->audio[FP_GameAudio_PortalDestroy] = os->funcs.load_audio(assets, DQN_STR8("Portal Destroy"), DQN_STR8("Data/Audio/portal_destroy.ogg"));
|
||||||
game->audio[FP_GameAudio_Smooch] = os->funcs.load_audio(assets, DQN_STR8("Smooch"), DQN_STR8("Data/Audio/smooch.ogg"));
|
game->audio[FP_GameAudio_Smooch] = os->funcs.load_audio(assets, DQN_STR8("Smooch"), DQN_STR8("Data/Audio/smooch.ogg"));
|
||||||
game->audio[FP_GameAudio_Woosh] = os->funcs.load_audio(assets, DQN_STR8("Woosh"), DQN_STR8("Data/Audio/woosh.ogg"));
|
game->audio[FP_GameAudio_Woosh] = os->funcs.load_audio(assets, DQN_STR8("Woosh"), DQN_STR8("Data/Audio/woosh.ogg"));
|
||||||
|
game->audio[FP_GameAudio_GameStart] = os->funcs.load_audio(assets, DQN_STR8("Game Start"), DQN_STR8("Data/Audio/game_start.ogg"));
|
||||||
|
game->audio[FP_GameAudio_PerryStart] = os->funcs.load_audio(assets, DQN_STR8("Perry Start"), DQN_STR8("Data/Audio/perry_start.ogg"));
|
||||||
|
|
||||||
// NOTE: Load sprite sheets ====================================================================
|
// NOTE: Load sprite sheets ====================================================================
|
||||||
os->user_data = game;
|
os->user_data = game;
|
||||||
@ -3020,6 +3022,7 @@ static void FP_Render(FP_Game *game, TELY_OS *os, TELY_Renderer *renderer, TELY_
|
|||||||
game->play.perry_join_splash_screen_shake_triggered = true;
|
game->play.perry_join_splash_screen_shake_triggered = true;
|
||||||
game->play.perry_join_flash_alpha = 1.f;
|
game->play.perry_join_flash_alpha = 1.f;
|
||||||
game->play.perry_join_splash_screen_end_ms = game->play.clock_ms + 2000;
|
game->play.perry_join_splash_screen_end_ms = game->play.clock_ms + 2000;
|
||||||
|
TELY_Audio_Play(audio, game->audio[FP_GameAudio_PerryStart], 1.f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4123,8 +4126,10 @@ static void FP_Render(FP_Game *game, TELY_OS *os, TELY_Renderer *renderer, TELY_
|
|||||||
if (new_player.yes) {
|
if (new_player.yes) {
|
||||||
if (new_player.tutorial_requested) {
|
if (new_player.tutorial_requested) {
|
||||||
game->play.state = FP_GameState_Tutorial;
|
game->play.state = FP_GameState_Tutorial;
|
||||||
|
TELY_Audio_Play(audio, game->audio[FP_GameAudio_GameStart], 1.f);
|
||||||
} else {
|
} else {
|
||||||
game->play.state = FP_GameState_Play;
|
game->play.state = FP_GameState_Play;
|
||||||
|
TELY_Audio_Play(audio, game->audio[FP_GameAudio_GameStart], 1.f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -334,6 +334,8 @@ enum FP_GameAudio
|
|||||||
FP_GameAudio_Message,
|
FP_GameAudio_Message,
|
||||||
FP_GameAudio_Monkey,
|
FP_GameAudio_Monkey,
|
||||||
FP_GameAudio_PortalDestroy,
|
FP_GameAudio_PortalDestroy,
|
||||||
|
FP_GameAudio_GameStart,
|
||||||
|
FP_GameAudio_PerryStart,
|
||||||
FP_GameAudio_Count,
|
FP_GameAudio_Count,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user