diff --git a/assets/preload/data/freeplaySonglist.txt b/assets/preload/data/freeplaySonglist.txt index 1b5bac2..16938e3 100644 --- a/assets/preload/data/freeplaySonglist.txt +++ b/assets/preload/data/freeplaySonglist.txt @@ -1 +1,19 @@ -Tutorial \ No newline at end of file +Tutorial:gf +Bopeebo:dad +Fresh:dad +Dadbattle:dad +Spookeez:spooky +South:spooky +Monster:monster +Pico:pico +Philly:pico +Blammed:pico +Satin-Panties:mom +High:mom +Milf:mom +Cocoa:parents-christmas +Eggnog:parents-christmas +Winter-Horrorland:monster-christmas +Senpai:senpai +Roses:senpai +Thorns:spirit \ No newline at end of file diff --git a/source/FreeplayState.hx b/source/FreeplayState.hx index f622cb7..c051894 100644 --- a/source/FreeplayState.hx +++ b/source/FreeplayState.hx @@ -41,7 +41,8 @@ class FreeplayState extends MusicBeatState for (i in 0...initSonglist.length) { - songs.push(new SongMetadata(initSonglist[i], 1, 'gf')); + var data:Array = initSonglist[i].split(':'); + songs.push(new SongMetadata(data[0], 1, data[1])); } /* @@ -63,15 +64,6 @@ class FreeplayState extends MusicBeatState isDebug = true; #end - addWeek(['Bopeebo', 'Fresh', 'Dadbattle'], 1, ['dad']); - addWeek(['Spookeez', 'South', 'Monster'], 2, ['spooky', 'spooky', 'monster']); - addWeek(['Pico', 'Philly', 'Blammed'], 3, ['pico']); - - addWeek(['Satin-Panties', 'High', 'Milf'], 4, ['mom']); - addWeek(['Cocoa', 'Eggnog', 'Winter-Horrorland'], 5, ['parents-christmas', 'parents-christmas', 'monster-christmas']); - - addWeek(['Senpai', 'Roses', 'Thorns'], 6, ['senpai', 'senpai', 'spirit']); - // LOAD MUSIC // LOAD CHARACTERS @@ -271,7 +263,6 @@ class FreeplayState extends MusicBeatState #end #if PRELOAD_ALL - Conductor.changeBPM(Song.loadFromJson(Highscore.formatSong(songs[curSelected].songName,0),songs[curSelected].songName.toLowerCase()).bpm); FlxG.sound.playMusic(Paths.inst(songs[curSelected].songName), 0); #end diff --git a/source/Options.hx b/source/Options.hx index db8d4b1..c8f5a2e 100644 --- a/source/Options.hx +++ b/source/Options.hx @@ -329,9 +329,9 @@ class OffsetMenu extends Option public override function press():Bool { trace("switch"); - var poop:String = Highscore.formatSong("offsetTest", 1); + var poop:String = Highscore.formatSong("Tutorial", 1); - PlayState.SONG = Song.loadFromJson(poop, "offsetTest"); + PlayState.SONG = Song.loadFromJson(poop, "Tutorial"); PlayState.isStoryMode = false; PlayState.storyDifficulty = 0; PlayState.storyWeek = 0; diff --git a/source/PlayState.hx b/source/PlayState.hx index 6079db3..702cf49 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -124,6 +124,8 @@ class PlayState extends MusicBeatState private var camHUD:FlxCamera; private var camGame:FlxCamera; + public static var offsetTesting:Bool = false; + var notesHitArray:Array = []; var currentFrames:Int = 0; @@ -827,7 +829,7 @@ class PlayState extends MusicBeatState scoreTxt.x = healthBarBG.x + healthBarBG.width / 2; scoreTxt.setFormat(Paths.font("vcr.ttf"), 16, FlxColor.WHITE, CENTER, FlxTextBorderStyle.OUTLINE,FlxColor.BLACK); scoreTxt.scrollFactor.set(); - if (SONG.song.contains('offsetTest')) + if (offsetTesting) scoreTxt.x += 300; add(scoreTxt); @@ -1609,7 +1611,7 @@ class PlayState extends MusicBeatState super.update(elapsed); - if (!SONG.song.contains('offsetTest')) + if (!offsetTesting) { if (FlxG.save.data.accuracyDisplay) { @@ -1967,7 +1969,7 @@ class PlayState extends MusicBeatState #end } - if (SONG.song.contains('offsetTest')) + if (offsetTesting) { FlxG.sound.playMusic(Paths.music('freakyMenu')); LoadingState.loadAndSwitchState(new OptionsMenu()); @@ -2169,7 +2171,7 @@ class PlayState extends MusicBeatState currentTimingShown.text = msTiming + "ms"; currentTimingShown.size = 20; - if (msTiming >= 0.03 && SONG.song.contains('offsetTest')) + if (msTiming >= 0.03 && offsetTesting) { //Remove Outliers hits.shift();