From 82fba0eb8b470b538436585ee5a54518e2d12a86 Mon Sep 17 00:00:00 2001 From: MtH Date: Tue, 30 Mar 2021 23:32:57 +0200 Subject: [PATCH 1/2] have notes show up properly on scroll speeds below 1 --- source/PlayState.hx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/source/PlayState.hx b/source/PlayState.hx index 505d9267e..c460bac90 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -1604,16 +1604,13 @@ class PlayState extends MusicBeatState } } - if (unspawnNotes[0] != null) + while (unspawnNotes[0] != null &&unspawnNotes[0].strumTime - Conductor.songPosition < 1500 / SONG.speed) { - if (unspawnNotes[0].strumTime - Conductor.songPosition < 1500) - { - var dunceNote:Note = unspawnNotes[0]; - notes.add(dunceNote); + var dunceNote:Note = unspawnNotes[0]; + notes.add(dunceNote); - var index:Int = unspawnNotes.indexOf(dunceNote); - unspawnNotes.splice(index, 1); - } + var index:Int = unspawnNotes.indexOf(dunceNote); + unspawnNotes.splice(index, 1); } if (generatedMusic) From 393ab7733dd3b883aacd7484ffed51005a241e83 Mon Sep 17 00:00:00 2001 From: MtH Date: Wed, 31 Mar 2021 14:43:37 +0200 Subject: [PATCH 2/2] clip rotated sus --- source/Note.hx | 2 -- source/PlayState.hx | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/source/Note.hx b/source/Note.hx index e3c8913cb..d0b582e50 100644 --- a/source/Note.hx +++ b/source/Note.hx @@ -184,8 +184,6 @@ class Note extends FlxSprite } prevNote.scale.y *= Conductor.stepCrochet / 100 * 1.5 * PlayState.SONG.speed; - if (PreferencesMenu.getPref('downscroll')) - prevNote.angle = 0; prevNote.updateHitbox(); // prevNote.setGraphicSize(); } diff --git a/source/PlayState.hx b/source/PlayState.hx index f3bf44cca..3888d6b26 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -1661,6 +1661,7 @@ class PlayState extends MusicBeatState var swagRect:FlxRect = new FlxRect(0, 0, daNote.width / daNote.scale.x, daNote.height / daNote.scale.y); swagRect.height = (strumLineMid - daNote.y) / daNote.scale.y; + swagRect.y = daNote.height / daNote.scale.y - swagRect.height; daNote.clipRect = swagRect; } }