This commit is contained in:
Ralty
2025-06-30 22:29:21 +07:00
parent 241b87ad58
commit 9982236321
3 changed files with 12 additions and 4 deletions
+4 -2
View File
@@ -22,8 +22,10 @@ class EventsData {
{name: "Camera", type: TDropDown(['camGame', 'camHUD']), defValue: "camGame"}
],
"Camera Modulo Change" => [
{name: "Modulo Interval (Beats)", type: TInt(1, 9999999, 1), defValue: 4},
{name: "Bump Strength", type: TFloat(0.1, 10, 0.01, 2), defValue: 1}
{name: "Modulo Interval", type: TInt(1, 9999999, 1), defValue: 4},
{name: "Bump Strength", type: TFloat(0.1, 10, 0.01, 2), defValue: 1},
{name: "Every Beat Type", type: TDropDown(['BEAT', 'MEASURE', 'STEP']), defValue: 'BEAT'},
{name: "Beat Offset", type: TFloat(-10, 10, 0.25, 2), defValue: 0}
],
"Camera Flash" => [
{name: "Reversed?", type: TBool, defValue: false},
+2 -2
View File
@@ -7,9 +7,9 @@ import funkin.backend.system.interfaces.IBeatReceiver;
import funkin.editors.charter.Charter;
enum BeatType {
STEP;
BEAT;
MEASURE;
STEP;
}
@:structInit
@@ -38,7 +38,7 @@ final class Conductor
default: curBeatFloat;
}
if (interval <= 0) return beat - offset;
else return Math.floor((beat - offset) * interval) / interval;
else return Math.floor((beat - offset) / interval) * interval;
}
/**
+6
View File
@@ -1468,6 +1468,12 @@ class PlayState extends MusicBeatState
case "Camera Modulo Change":
camZoomingInterval = event.params[0];
camZoomingStrength = event.params[1];
camZoomingEvery = switch (event.params[2].toUpperCase()) {
case "STEP": STEP;
case "MEASURE": MEASURE;
default: BEAT;
}
camZoomingOffset = event.params[2];
case "Camera Flash":
var camera:FlxCamera = event.params[3] == "camHUD" ? camHUD : camGame;