updates to early window and health gain + work on waveform

This commit is contained in:
KadeDeveloper
2021-08-04 13:51:44 -07:00
parent 05817e12ea
commit 5698b6859d
8 changed files with 172 additions and 27 deletions

View File

@@ -61,6 +61,8 @@ class GameplayCustomizeState extends MusicBeatState
camHUD.bgColor.alpha = 0;
FlxG.cameras.add(camHUD);
camHUD.zoom = FlxG.save.data.zoom;
background.scrollFactor.set(0.9,0.9);
curt.scrollFactor.set(0.9,0.9);
front.scrollFactor.set(0.9,0.9);
@@ -116,7 +118,7 @@ class GameplayCustomizeState extends MusicBeatState
generateStaticArrows(0);
generateStaticArrows(1);
text = new FlxText(5, FlxG.height + 40, 0, "Click and drag around gameplay elements to customize their positions.\nPress R to reset.\nPress Escape to go back.", 12);
text = new FlxText(5, FlxG.height + 40, 0, "Click and drag around gameplay elements to customize their positions.\nPress R to reset. +/- to change zoom.\nPress Escape to go back.", 12);
text.scrollFactor.set();
text.setFormat("VCR OSD Mono", 16, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
@@ -164,6 +166,18 @@ class GameplayCustomizeState extends MusicBeatState
for (i in strumLineNotes)
i.y = strumLine.y;
if (FlxG.keys.pressed.PLUS)
{
FlxG.save.data.zoom += 0.1;
camHUD.zoom = FlxG.save.data.zoom;
}
if (FlxG.keys.pressed.MINUS)
{
FlxG.save.data.zoom -= 0.1;
camHUD.zoom = FlxG.save.data.zoom;
}
if (FlxG.mouse.overlaps(sick) && FlxG.mouse.justReleased)
{
FlxG.save.data.changedHitX = sick.x;