Initial Checkin of Code
This commit is contained in:
parent
19b557ee9b
commit
0bee2ee47b
44 changed files with 7965 additions and 0 deletions
28
Library/Support/Modules.cs
Normal file
28
Library/Support/Modules.cs
Normal 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")
|
||||
);
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue