From f439624404f4f6f2c175b6c8ed9ddd0f604bedfb Mon Sep 17 00:00:00 2001 From: zacksgamerz <81515012+zacksgamerz@users.noreply.github.com> Date: Thu, 16 Jan 2025 14:17:52 +0700 Subject: [PATCH] Scaled down the size of the incomming notes for the player for the default control scheme. --- source/funkin/play/notes/Strumline.hx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source/funkin/play/notes/Strumline.hx b/source/funkin/play/notes/Strumline.hx index 526bd2ae1..6283c2bed 100644 --- a/source/funkin/play/notes/Strumline.hx +++ b/source/funkin/play/notes/Strumline.hx @@ -894,7 +894,16 @@ class Strumline extends FlxSpriteGroup { var noteKindStyle:NoteStyle = NoteKindManager.getNoteStyle(note.kind, this.noteStyle.id) ?? this.noteStyle; noteSprite.setupNoteGraphic(noteKindStyle); - noteSprite.scale.scale(strumlineScale.x, strumlineScale.y); + + var trueScale = new FlxPoint(strumlineScale.x, strumlineScale.y); + if (Preferences.controlsScheme == FunkinHitboxControlSchemes.Arrows) + { + final amplification:Float = (FlxG.width / FlxG.height) / (FlxG.initialWidth / FlxG.initialHeight); + trueScale.set(strumlineScale.x - ((FlxG.height / FlxG.width) * 0.15) * amplification, + strumlineScale.y - ((FlxG.height / FlxG.width) * 0.15) * amplification); + } + + noteSprite.scale.scale(trueScale.x, trueScale.y); noteSprite.updateHitbox(); noteSprite.direction = note.getDirection();