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

Commit

Permalink
version update and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kade-github committed Apr 3, 2021
1 parent 8a95be0 commit 5928783
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion source/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class FreeplayState extends MusicBeatState
for (i in 0...initSonglist.length)
{
var data:Array<String> = initSonglist[i].split(':');
songs.push(new SongMetadata(data[0], data[2], data[1]));
songs.push(new SongMetadata(data[0], Std.parseInt(data[2]), data[1]));
}

/*
Expand Down
4 changes: 2 additions & 2 deletions source/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class MainMenuState extends MusicBeatState
var newGaming2:FlxText;
var newInput:Bool = true;

public static var nightly:String = "-Nightly.3";
public static var nightly:String = "";

public static var kadeEngineVer:String = "1.3.1" + nightly;
public static var kadeEngineVer:String = "1.4" + nightly;
public static var gameVer:String = "0.2.7.1";

var magenta:FlxSprite;
Expand Down
1 change: 1 addition & 0 deletions source/Options.hx
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ class OffsetMenu extends Option
PlayState.isStoryMode = false;
PlayState.storyDifficulty = 0;
PlayState.storyWeek = 0;
PlayState.offsetTesting = true;
trace('CUR WEEK' + PlayState.storyWeek);
LoadingState.loadAndSwitchState(new PlayState());
return false;
Expand Down
11 changes: 6 additions & 5 deletions source/OptionsMenu.hx
Original file line number Diff line number Diff line change
Expand Up @@ -140,20 +140,21 @@ class OptionsMenu extends MusicBeatState

case 'Scroll Speed':
if (FlxG.keys.justPressed.RIGHT)
FlxG.save.data.scrollSpeed+=0.1;
FlxG.save.data.scrollSpeed += 0.1;

if (FlxG.keys.justPressed.LEFT)
FlxG.save.data.scrollSpeed-=0.1;
FlxG.save.data.scrollSpeed -= 0.1;

// caps

if (FlxG.save.data.scrollSpeed < 0)
FlxG.save.data.scrollSpeed = 0.1;
if (FlxG.save.data.scrollSpeed < 1)
FlxG.save.data.scrollSpeed = 1;

if (FlxG.save.data.scrollSpeed > 10)
FlxG.save.data.scrollSpeed = 10;

versionShit.text = "Current Scroll Speed: " + FlxG.save.data.scrollSpeed + " - Description - " + currentDescription;

versionShit.text = "Current Scroll Speed: " + truncateFloat(FlxG.save.data.scrollSpeed,1) + " - Description - " + currentDescription;
default:
if (FlxG.keys.pressed.RIGHT)
FlxG.save.data.offset += 0.01;
Expand Down
8 changes: 7 additions & 1 deletion source/PauseSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,13 @@ class PauseSubState extends MusicBeatSubstate
FlxG.resetState();
case "Exit to menu":
PlayState.loadRep = false;
FlxG.switchState(new MainMenuState());
if (PlayState.offsetTesting)
{
PlayState.offsetTesting = false;
FlxG.switchState(new OptionsMenu());
}
else
FlxG.switchState(new MainMenuState());
}
}

Expand Down
1 change: 1 addition & 0 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1972,6 +1972,7 @@ class PlayState extends MusicBeatState
if (offsetTesting)
{
FlxG.sound.playMusic(Paths.music('freakyMenu'));
offsetTesting = false;
LoadingState.loadAndSwitchState(new OptionsMenu());
FlxG.save.data.offset = offsetTest;
}
Expand Down
2 changes: 1 addition & 1 deletion version.downloadMe
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.1
1.4

0 comments on commit 5928783

Please sign in to comment.