Initial Checkin of Code

This commit is contained in:
Mario Steele 2025-04-11 13:35:55 -05:00
parent 19b557ee9b
commit 0bee2ee47b
44 changed files with 7965 additions and 0 deletions

View file

@ -0,0 +1,28 @@
using Godot;
namespace PokemonLike.Library.Support;
public static class Modules
{
public static bool IsActionJustPressed() => (
Input.IsActionJustPressed("move_up") ||
Input.IsActionJustPressed("move_down") ||
Input.IsActionJustPressed("move_left") ||
Input.IsActionJustPressed("move_right")
);
public static bool IsActionPressed() => (
Input.IsActionPressed("move_up") ||
Input.IsActionPressed("move_down") ||
Input.IsActionPressed("move_left") ||
Input.IsActionPressed("move_right")
);
public static bool IsActionJustReleased() => (
Input.IsActionJustReleased("move_up") ||
Input.IsActionJustReleased("move_down") ||
Input.IsActionJustReleased("move_left") ||
Input.IsActionJustReleased("move_right")
);
}