Skip to content

Commit

Permalink
Update ChartingState.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Dec 6, 2024
1 parent c69ed38 commit b77e5c6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions source/states/ChartingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class ChartingState extends ExtendableState {
gridBG.screenCenter();
add(gridBG);

dummyArrow = new GameSprite().makeGraphic(gridSize, gridSize);
dummyArrow = new FlxSprite().makeGraphic(gridSize, gridSize);
add(dummyArrow);

renderedNotes = new FlxTypedGroup<Note>();
Expand Down Expand Up @@ -153,9 +153,7 @@ class ChartingState extends ExtendableState {
});
add(clearSongButton);

loadSongButton = new FlxButton(FlxG.width - 110, 190, "Load Song", () -> {
openSubState(new LoadSongSubState());
});
loadSongButton = new FlxButton(FlxG.width - 110, 190, "Load Song", () -> openSubState(new LoadSongSubState()));
add(loadSongButton);

loadSongFromButton = new FlxButton(FlxG.width - 110, 220, "Load JSON", loadSongFromFile);
Expand All @@ -171,7 +169,7 @@ class ChartingState extends ExtendableState {
var gridBlackLine:FlxSprite = new FlxSprite(gridBG.x + gridBG.width / 2, gridBG.y).makeGraphic(2, Std.int(gridBG.height), FlxColor.BLACK);
add(gridBlackLine);

strumLine = new FlxSprite(0, 50).makeGraphic(Std.int(FlxG.width / 2), 4);
strumLine = new FlxSprite(gridBG.x, 50).makeGraphic(gridBG.width, 4);
add(strumLine);

var prototypeNotice:FlxText = new FlxText(5, FlxG.height - 24, 0, 'Charter v0.2-rc1 // Functionality is subject to change.', 12);
Expand Down Expand Up @@ -267,8 +265,8 @@ class ChartingState extends ExtendableState {
+ curBeat
+ "\nNote Snap: "
+ beatSnap
+ (Input.pressed('shift') ? "\n(DISABLED)" : "\n(CONTROL + ARROWS)")
+ "\n");
+ "\n" + (Input.pressed('shift') ? "(DISABLED)" : "(CONTROL + ARROWS)")
);
}

function loadSong(daSong:String):Void {
Expand Down

0 comments on commit b77e5c6

Please sign in to comment.