Skip to content

Commit

Permalink
FIX ZOOMS ONCE AND FOR ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
haya3218 committed Sep 23, 2021
1 parent 4410d18 commit f04adf1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions source/gameFolder/meta/state/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1285,8 +1285,19 @@ class PlayState extends MusicBeatState
{
FlxG.camera.zoom += 0.015;
camHUD.zoom += 0.05;
// this code makes me الله لا يسامحكم لكونكم مشبوهين
// sorry shubs idk how to make this code better
for (hud in strumHUD)
{
hud.zoom += 0.05;

hud.y -= 5;
FlxTween.tween(hud, {y: hud.y + 5}, 0.75 * (FlxG.updateFramerate / 60), {ease: FlxEase.sineOut});
}
strumHUD[0].x -= 10;
strumHUD[1].x += 10;
FlxTween.tween(strumHUD[0], {x: strumHUD[0].x + 10}, 0.75 * (FlxG.updateFramerate / 60), {ease: FlxEase.sineOut});
FlxTween.tween(strumHUD[1], {x: strumHUD[1].x - 10}, 0.75 * (FlxG.updateFramerate / 60), {ease: FlxEase.sineOut});
}

uiHUD.beatHit();
Expand Down

0 comments on commit f04adf1

Please sign in to comment.