mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-26 15:07:14 +00:00
simplify freeplay camera
This commit is contained in:
parent
7a19bd4b50
commit
1c352e4e11
|
@ -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