This commit is contained in:
Yoshman29
2022-12-07 23:29:04 +01:00
parent 1adb550a9b
commit c15334077a
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
1418
1420
+2 -1
View File
@@ -66,6 +66,7 @@ class Note extends FlxSprite
public var noteType(get, null):String;
@:dox(hide) public var __strumCameras:Array<FlxCamera> = null;
@:dox(hide) public var __noteAngle:Float = 0;
private function get_noteType() {
if (PlayState.instance == null) return null;
@@ -167,7 +168,7 @@ class Note extends FlxSprite
rotOffset.y += 2;
if (negativeScroll) offset.y *= -1;
if (angleOffsets && Std.int(angle % 360) != 0) {
if (angleOffsets && Std.int(__noteAngle % 360) != 0) {
// get default values
var oldOffset = FlxPoint.get(offset.x, offset.y);
var oldOrigin = FlxPoint.get(origin.x, origin.y);
+2 -1
View File
@@ -1437,7 +1437,6 @@ class PlayState extends MusicBeatState
override function beatHit(curBeat:Int)
{
super.beatHit(curBeat);
scripts.call("beatHit", [curBeat]);
if (camZoomingInterval < 1) camZoomingInterval = 1;
if (Options.camZoomOnBeat && camZooming && FlxG.camera.zoom < 1.35 && curBeat % camZoomingInterval == 0)
@@ -1456,6 +1455,8 @@ class PlayState extends MusicBeatState
{
gf.dance();
}
scripts.call("beatHit", [curBeat]);
}
public var curLight:Int = 0;
+1 -1
View File
@@ -55,7 +55,7 @@ class Strum extends FlxSprite {
daNote.scrollFactor.set(scrollFactor.x, scrollFactor.y);
var noteAngle = getNotesAngle(daNote);
var noteAngle = daNote.__noteAngle = getNotesAngle(daNote);
daNote.angle = daNote.isSustainNote ? noteAngle : angle;
if (Std.int(noteAngle % 360) != 0) {
var noteAngleCos = Math.cos(noteAngle / 180 * Math.PI);