1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-02-07 20:18:21 +00:00

fix camera

This commit is contained in:
George FunBook 2021-03-22 22:41:37 -05:00
parent b8ef4952cd
commit e6a5064845

View file

@ -50,8 +50,8 @@ class MainMenuState extends MusicBeatState
var bg:FlxSprite = new FlxSprite(Paths.image('menuBG'));
bg.scrollFactor.x = 0;
bg.scrollFactor.y = 0.18;
bg.setGraphicSize(Std.int(bg.width * 1.3));
bg.scrollFactor.y = 0.17;
bg.setGraphicSize(Std.int(bg.width * 1.2));
bg.updateHitbox();
bg.screenCenter();
bg.antialiasing = true;
@ -110,7 +110,7 @@ class MainMenuState extends MusicBeatState
}
FlxG.camera.follow(camFollow, null, 0.06);
FlxG.camera.setScrollBounds(bg.x, bg.x + bg.width, bg.y, bg.y + bg.height * 1.2);
// FlxG.camera.setScrollBounds(bg.x, bg.x + bg.width, bg.y, bg.y + bg.height * 1.2);
var versionShit:FlxText = new FlxText(5, FlxG.height - 18, 0, "v" + Application.current.meta.get('version'), 12);
versionShit.scrollFactor.set();