diff --git a/source/game/Button.hx b/source/game/Button.hx index 332fa37..e38888e 100644 --- a/source/game/Button.hx +++ b/source/game/Button.hx @@ -9,7 +9,7 @@ class Button extends FlxSprite { this.clickCallback = clickCallback; loadGraphic(Paths.image(file)); - scale.set(0.35, 0.35); + scale.set(0.3, 0.3); } override function update(elapsed:Float) { diff --git a/source/states/MenuState.hx b/source/states/MenuState.hx index d564a17..24a1540 100644 --- a/source/states/MenuState.hx +++ b/source/states/MenuState.hx @@ -22,23 +22,24 @@ class MenuState extends FlxState { add(grid); logo = new FlxSprite(0, 0).loadGraphic(Paths.image('title/logo')); - logo.screenCenter(X); + logo.x = (FlxG.width - logo.width * logo.scale.x) / 2; + logo.y = 0; logo.scale.set(0.4, 0.4); add(logo); - playBtn = new Button(0, logo.y + 100, 'title/play', () -> { + playBtn = new Button(0, logo.y + 120, 'title/play', () -> { FlxG.switchState(PlayState.new); }); playBtn.screenCenter(X); add(playBtn); - optionsBtn = new Button(0, playBtn.y + 100, 'title/options', () -> { + optionsBtn = new Button(0, playBtn.y + 120, 'title/options', () -> { trace('options menu unfinished sorry'); }); optionsBtn.screenCenter(X); add(optionsBtn); - exitBtn = new Button(0, optionsBtn.y + 100, 'title/exit', () -> { + exitBtn = new Button(0, optionsBtn.y + 120, 'title/exit', () -> { Sys.exit(0); }); exitBtn.screenCenter(X); diff --git a/source/states/PlayState.hx b/source/states/PlayState.hx index 9f28696..74833ab 100644 --- a/source/states/PlayState.hx +++ b/source/states/PlayState.hx @@ -17,7 +17,8 @@ class PlayState extends FlxState { add(strumline); for (i in 0...noteDirs.length) { - var note:Note = new Note(i * 150, 50, noteDirs[i], "receptor"); + var note:Note = new Note(i * 200, 50, noteDirs[i], "receptor"); + note.screenCenter(Y); strumline.add(note); } }