Skip to content

Commit

Permalink
Last minute fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatRozebudDude committed Oct 25, 2021
1 parent 0a12497 commit 2e12876
Show file tree
Hide file tree
Showing 23 changed files with 6 additions and 5 deletions.
Binary file added assets/sounds/death/emmi1.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi10.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi11.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi12.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi13.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi14.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi15.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi16.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi17.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi18.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi19.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi2.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi20.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi21.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi3.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi4.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi5.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi6.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi7.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi8.ogg
Binary file not shown.
Binary file added assets/sounds/death/emmi9.ogg
Binary file not shown.
5 changes: 4 additions & 1 deletion source/GameOverSubstate.hx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ class GameOverSubstate extends MusicBeatSubstate

if (bf.animation.curAnim.name == 'firstDeath' && bf.animation.curAnim.finished)
{
FlxG.sound.playMusic(Paths.music('gameOver' + stageSuffix));
if (PlayState.SONG.song.toLowerCase() == 'glamour'){
FlxG.sound.play(Paths.sound("death/emmi" + FlxG.random.int(1, 21)));
}
FlxG.sound.playMusic(Paths.music('gameOver' + stageSuffix), 0.6);
}

if (FlxG.sound.music.playing)
Expand Down
6 changes: 2 additions & 4 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,9 @@ class PlayState extends MusicBeatState
var gfVersion:String = 'gf';

if (SONG.gf == null) {
switch(storyWeek)
switch(SONG.song.toLowerCase())
{
case 4: gfVersion = 'gf-car';
case 5: gfVersion = 'gf-christmas';
case 6: gfVersion = 'gf-pixel';
case "glamour": gfVersion = 'gf-cola';
}

SONG.gf = gfVersion;
Expand Down

0 comments on commit 2e12876

Please sign in to comment.