sustains are centered now so stfu

This commit is contained in:
Yoshman29
2022-11-10 21:30:16 +01:00
parent a1f49a3e10
commit 14007b448c
2 changed files with 14 additions and 3 deletions
+13 -2
View File
@@ -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;
});
}
+1 -1
View File
@@ -1 +1 @@
1265
1266