summaryrefslogtreecommitdiff
path: root/client/Player.cs
diff options
context:
space:
mode:
authorJoel Stålnacke <joel@saker.fi>2026-03-19 21:26:44 +0200
committerJoel Stålnacke <joel@saker.fi>2026-03-19 21:26:44 +0200
commit3b60cd682120947119f442bb71ab2a5e98decccc (patch)
treec168115bc480616656b8a8bf6e3da7f887e722df /client/Player.cs
parentc8ec21382633851dfb25922f7c15610818865b29 (diff)
Remove Godot client
Diffstat (limited to 'client/Player.cs')
-rw-r--r--client/Player.cs24
1 files changed, 0 insertions, 24 deletions
diff --git a/client/Player.cs b/client/Player.cs
deleted file mode 100644
index da95275..0000000
--- a/client/Player.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using Godot;
-using System;
-using Djup.Native;
-
-public partial class Player : Node2D
-{
- [Export]
- public World World { get; set; }
- public uint Id { get; set; } = 0;
-
- public unsafe override void _Process(double delta)
- {
- byte input = 0;
- if (Input.IsActionPressed("up"))
- input |= (byte)PlayerInput.Up;
- if (Input.IsActionPressed("down"))
- input |= (byte)PlayerInput.Down;
- if (Input.IsActionPressed("left"))
- input |= (byte)PlayerInput.Left;
- if (Input.IsActionPressed("right"))
- input |= (byte)PlayerInput.Right;
- World.SetPlayerInput(Id, input);
- }
-}