Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2562 from ActualMandM/tutorialVoices
Browse files Browse the repository at this point in the history
Use Voices track for Tutorial
  • Loading branch information
Kade-github authored Oct 24, 2021
2 parents 4d53d7a + 3d4c135 commit a613271
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion assets/preload/data/songs/tutorial/tutorial-easy.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
],
"bpm": 100,
"sections": 0,
"needsVoices": false,
"needsVoices": true,
"player1": "bf",
"player2": "gf",
"sectionLengths": [],
Expand Down
2 changes: 1 addition & 1 deletion assets/preload/data/songs/tutorial/tutorial-hard.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
],
"bpm": 100,
"sections": 0,
"needsVoices": false,
"needsVoices": true,
"player1": "bf",
"player2": "gf",
"sectionLengths": [],
Expand Down
2 changes: 1 addition & 1 deletion assets/preload/data/songs/tutorial/tutorial.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
],
"bpm": 100,
"sections": 0,
"needsVoices": false,
"needsVoices": true,
"player1": "bf",
"player2": "gf",
"sectionLengths": [],
Expand Down
Binary file added assets/songs/test/Inst.mp3
Binary file not shown.
Binary file modified assets/songs/tutorial/Inst.mp3
Binary file not shown.
Binary file modified assets/songs/tutorial/Inst.ogg
Binary file not shown.
Binary file added assets/songs/tutorial/Voices.mp3
Binary file not shown.
Binary file added assets/songs/tutorial/Voices.ogg
Binary file not shown.
12 changes: 10 additions & 2 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -4494,8 +4494,16 @@ class PlayState extends MusicBeatState

if (curBeat % 16 == 15 && SONG.songId == 'tutorial' && dad.curCharacter == 'gf' && curBeat > 16 && curBeat < 48)
{
boyfriend.playAnim('hey', true);
dad.playAnim('cheer', true);
if (vocals.volume != 0)
{
boyfriend.playAnim('hey', true);
dad.playAnim('cheer', true);
}
else
{
dad.playAnim('sad', true);
FlxG.sound.play(Paths.soundRandom('GF_', 1, 4, 'shared'), 0.3);
}
}

if (PlayStateChangeables.Optimize)
Expand Down

0 comments on commit a613271

Please sign in to comment.