Skip to content

Commit

Permalink
simplify freeplay camera
Browse files Browse the repository at this point in the history
  • Loading branch information
richTrash21 committed May 23, 2024
1 parent 7a19bd4 commit 1c352e4
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions source/funkin/ui/freeplay/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ class FreeplayState extends MusicBeatSubState

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)
{
this.persistentUpdate = true;
Expand Down Expand Up @@ -534,15 +540,6 @@ class FreeplayState extends MusicBeatSubState
});

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;
Expand Down

0 comments on commit 1c352e4

Please sign in to comment.