From 403726dfa4df1b9c26da81bef462db5e5a5b4a12 Mon Sep 17 00:00:00 2001 From: Joalor64 Date: Wed, 24 Jul 2024 20:50:20 -0400 Subject: [PATCH] this should work --- source/game/Button.hx | 1 - source/states/MenuState.hx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/source/game/Button.hx b/source/game/Button.hx index e38888e..d53ed68 100644 --- a/source/game/Button.hx +++ b/source/game/Button.hx @@ -9,7 +9,6 @@ class Button extends FlxSprite { this.clickCallback = clickCallback; loadGraphic(Paths.image(file)); - scale.set(0.3, 0.3); } override function update(elapsed:Float) { diff --git a/source/states/MenuState.hx b/source/states/MenuState.hx index 0058bd4..af8247f 100644 --- a/source/states/MenuState.hx +++ b/source/states/MenuState.hx @@ -48,7 +48,7 @@ class MenuState extends FlxState { if (FlxG.keys.justPressed.UP || FlxG.keys.justPressed.DOWN) changeSelection(FlxG.keys.justPressed.UP ? -1 : 1); - if (FlxG.kes.justPressed.ENTER) { + if (FlxG.keys.justPressed.ENTER) { switch (curSelected) { case 0: FlxG.switchState(PlayState.new);