From 14007b448cdeb1e7465a09dfe5f16406642cdc0c Mon Sep 17 00:00:00 2001 From: Yoshman29 <81191621+YoshiCrafter29@users.noreply.github.com> Date: Thu, 10 Nov 2022 21:30:16 +0100 Subject: [PATCH] sustains are centered now so stfu --- assets/data/scripts/pixel.hx | 15 +++++++++++++-- buildnumber.txt | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/assets/data/scripts/pixel.hx b/assets/data/scripts/pixel.hx index eb47cb24..6e7ce20f 100644 --- a/assets/data/scripts/pixel.hx +++ b/assets/data/scripts/pixel.hx @@ -1,3 +1,4 @@ +import funkin.game.HudCamera; import funkin.scripting.events.NoteHitEvent; public var pixelNotesForBF = true; @@ -93,7 +94,7 @@ function createPost() { } function onStartCountdown() { - var newNoteCamera = new FlxCamera(); + var newNoteCamera = new HudCamera(); newNoteCamera.bgColor = 0; // transparent FlxG.cameras.add(newNoteCamera, false); @@ -140,11 +141,21 @@ function pixelCam(cam) { var pixellyCameras = []; var pixellyShaders = []; +// function stepHit() { +// notes.forEach(function(n) { +// if (n.isSustainNote) +// n.offset.x -= 1; +// }); +// } function updatePost(elapsed) { - + for(e in pixellyCameras) { + if (Std.isOfType(e, HudCamera)) + e.downscroll = camHUD.downscroll; + } if (enableCameraHacks) { notes.forEach(function(n) { n.y -= n.y % daPixelZoom; + n.x -= n.x % daPixelZoom; }); } diff --git a/buildnumber.txt b/buildnumber.txt index 34201494..4c8735ee 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -1265 \ No newline at end of file +1266 \ No newline at end of file