fix camera

This commit is contained in:
George FunBook 2021-03-22 22:41:37 -05:00
parent 125f7cc957
commit 03f735bd33
1 changed files with 3 additions and 3 deletions

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();