pixel note fixes for scale/mulitkey

This commit is contained in:
TheZoroForce240
2024-08-28 11:37:11 +01:00
parent 9a09f12398
commit 296e90481d
2 changed files with 14 additions and 10 deletions
+2 -2
View File
@@ -98,12 +98,12 @@ class Strum extends FlxSprite {
private inline function updateNotePos(daNote:Note) {
if (daNote.strumRelativePos) {
daNote.setPosition((this.width - daNote.width) / 2, (daNote.strumTime - Conductor.songPosition) * (0.45 * CoolUtil.quantize(getScrollSpeed(daNote), 100)));
if (daNote.isSustainNote) daNote.y += N_WIDTHDIV2 * (scale.y / 0.7);
if (daNote.isSustainNote) daNote.y += N_WIDTHDIV2 * (height / 112);
} else {
var offset = FlxPoint.get(0, (Conductor.songPosition - daNote.strumTime) * (0.45 * CoolUtil.quantize(getScrollSpeed(daNote), 100)));
var realOffset = FlxPoint.get(0, 0);
if (daNote.isSustainNote) offset.y -= N_WIDTHDIV2 * (scale.y / 0.7);
if (daNote.isSustainNote) offset.y -= N_WIDTHDIV2 * (height / 112);
if (Std.int(daNote.__noteAngle % 360) != 0) {
var noteAngleCos = FlxMath.fastCos(daNote.__noteAngle / PIX180);