diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-17 20:49:03 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-17 20:49:03 -0300 |
| commit | bd8a14e5d22ee7e4e53a1b3c8bfe2b35328632e5 (patch) | |
| tree | c91a87d683884e468a8c4e2079dbf0d80b81396c /scripts/InputHandler.cs | |
| parent | bf74afcdd07e59b1a48dbfacdce9d52fad765865 (diff) | |
Attack
Diffstat (limited to 'scripts/InputHandler.cs')
| -rw-r--r-- | scripts/InputHandler.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/InputHandler.cs b/scripts/InputHandler.cs index dae990a..5194841 100644 --- a/scripts/InputHandler.cs +++ b/scripts/InputHandler.cs @@ -6,15 +6,15 @@ public partial class InputHandler : Node { Action action = null; if (Input.IsActionJustPressed("walk-up")) { - action = new MovementAction(Vector2I.Up); + action = new BumpAction(Vector2I.Up); } else if (Input.IsActionJustPressed("walk-down")) { - action = new MovementAction(Vector2I.Down); + action = new BumpAction(Vector2I.Down); } else if (Input.IsActionJustPressed("walk-left")) { - action = new MovementAction(Vector2I.Left); + action = new BumpAction(Vector2I.Left); } else if (Input.IsActionJustPressed("walk-right")) { - action = new MovementAction(Vector2I.Right); + action = new BumpAction(Vector2I.Right); } else if (Input.IsActionJustPressed("skip-turn")) { - action = new MovementAction(Vector2I.Zero); + action = new BumpAction(Vector2I.Zero); } return action; |
