mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 08:07:54 -05:00
simplify freeplay camera
This commit is contained in:
parent
7a19bd4b50
commit
1c352e4e11
1 changed files with 6 additions and 9 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue