simplify freeplay camera

This commit is contained in:
richTrash21 2024-05-23 21:50:11 +04:00
parent 7a19bd4b50
commit 1c352e4e11

View file

@ -156,6 +156,12 @@ class FreeplayState extends MusicBeatSubState
FlxTransitionableState.skipNextTransIn = true; FlxTransitionableState.skipNextTransIn = true;
// dedicated camera for the state so we don't need to fuk around with camera scrolls from the mainmenu / elsewhere
funnyCam = new FunkinCamera('freeplayFunny', 0, 0, FlxG.width, FlxG.height);
funnyCam.bgColor = FlxColor.TRANSPARENT;
FlxG.cameras.add(funnyCam, false);
this.cameras = [funnyCam];
if (stickerSubState != null) if (stickerSubState != null)
{ {
this.persistentUpdate = true; this.persistentUpdate = true;
@ -534,15 +540,6 @@ class FreeplayState extends MusicBeatSubState
}); });
generateSongList(null, false); generateSongList(null, false);
// dedicated camera for the state so we don't need to fuk around with camera scrolls from the mainmenu / elsewhere
funnyCam = new FunkinCamera('freeplayFunny', 0, 0, FlxG.width, FlxG.height);
funnyCam.bgColor = FlxColor.TRANSPARENT;
FlxG.cameras.add(funnyCam, false);
forEach(function(bs) {
bs.cameras = [funnyCam];
});
} }
var currentFilter:SongFilter = null; var currentFilter:SongFilter = null;