new chart system implementation progress

This commit is contained in:
Yoshman29
2023-02-20 14:06:47 +01:00
parent 8db770bc28
commit beda6f28c2
14 changed files with 451 additions and 1397 deletions
+5 -17
View File
@@ -1,5 +1,6 @@
package funkin.scripting.events;
import funkin.game.StrumLine;
import flixel.math.FlxPoint;
class CamMoveEvent extends CancellableEvent {
@@ -9,25 +10,12 @@ class CamMoveEvent extends CancellableEvent {
public var position:FlxPoint;
/**
* Boyfriend's camera position.
* Currently focused strumline.
*/
public var bfCamPos:FlxPoint;
/**
* Dad's camera position.
*/
public var dadCamPos:FlxPoint;
public var strumLine:StrumLine;
/**
* Ratio for lerping between Dad and BF.
* 0 = Camera focuses dad
* 0.5 = Duet Camera
* 1 = Camera focuses BF
* Number of focused characters
*/
public var ratio:Float = 0;
/**
* Whenever the camera focuses BF more than dad.
*/
public var focusBF:Bool = false;
public var focusedCharacters:Int;
}