From 84799a5ca427efcd22927f4604336d512f6249fb Mon Sep 17 00:00:00 2001 From: MemeHovy <124418090+MemeHovy@users.noreply.github.com> Date: Wed, 25 Oct 2023 18:51:23 -0400 Subject: [PATCH] some little thingies --- source/PlayState.hx | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/source/PlayState.hx b/source/PlayState.hx index d402e4a..dac4f93 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -110,7 +110,7 @@ using StringTools; class PlayState extends MusicBeatState { - public static var STRUM_X = 42; + public static var STRUM_X = 48.5; public static var STRUM_X_MIDDLESCROLL = -278; public static var ratingStuff:Array = [ @@ -133,15 +133,9 @@ class PlayState extends MusicBeatState public var modchartSaves:Map = new Map(); //event variables private var isCameraOnForcedPos:Bool = false; - #if (haxe >= "4.0.0") public var boyfriendMap:Map = new Map(); public var dadMap:Map = new Map(); public var gfMap:Map = new Map(); - #else - public var boyfriendMap:Map = new Map(); - public var dadMap:Map = new Map(); - public var gfMap:Map = new Map(); - #end public var BF_X:Float = 770; public var BF_Y:Float = 100; @@ -379,7 +373,7 @@ class PlayState extends MusicBeatState FlxG.cameras.add(camOther); grpNoteSplashes = new FlxTypedGroup(); - FlxCamera.defaultCameras = [camGame]; + FlxG.cameras.setDefaultDrawTarget(camGame, true); CustomFadeTransition.nextCamera = camOther; persistentUpdate = true; @@ -1032,8 +1026,8 @@ class PlayState extends MusicBeatState startCharacterPos(boyfriend); boyfriendGroup.add(boyfriend); startCharacterLua(boyfriend.curCharacter); - - var camPos:FlxPoint = new FlxPoint(girlfriendCameraOffset[0], girlfriendCameraOffset[1]); + + var camPos:FlxPoint = FlxPoint.get(girlfriendCameraOffset[0], girlfriendCameraOffset[1]); if(gf != null) { camPos.x += gf.getGraphicMidpoint().x + gf.cameraPosition[0]; @@ -1178,6 +1172,7 @@ class PlayState extends MusicBeatState camFollowPos = new FlxObject(0, 0, 1, 1); snapCamFollowToPos(camPos.x, camPos.y); + camPos.put(); if (prevCamFollow != null) { camFollow = prevCamFollow;