Merge pull request #61 from theDetourist/quickfix

Fix for song not ending / Add Discord RPC instructions to README
This commit is contained in:
Kade M 2021-03-25 12:30:37 -07:00 committed by GitHub
commit a0f25d7e4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
export/
.vscode/
APIStuff.hx
APIStuff.hx

View File

@ -106,6 +106,9 @@ You should have everything ready for compiling the game! Follow the guide below
At the moment, you can optionally fix the transition bug in songs with zoomed out cameras.
- Run `haxelib git flixel-addons https://github.com/HaxeFlixel/flixel-addons` in the terminal/command-prompt.
**As of version 1.3**, you also need Discord RPC to compile the game, get it by using the following command:
- Use `haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc` in the terminal/command-prompt.
### Ignored files
I gitignore the API keys for the game, so that no one can nab them and post fake highscores on the leaderboards. But because of that the game

View File

@ -1130,7 +1130,9 @@ class PlayState extends MusicBeatState
lastReportedPlayheadPosition = 0;
if (!paused)
FlxG.sound.playMusic(Paths.inst(PlayState.SONG.song), 1, false);
FlxG.sound.playMusic(Paths.inst(PlayState.SONG.song), 1, false);
FlxG.sound.music.onComplete = endSong;
vocals.play();
if (FlxG.save.data.songPosition)