From 3b60cd682120947119f442bb71ab2a5e98decccc Mon Sep 17 00:00:00 2001 From: Joel Stålnacke Date: Thu, 19 Mar 2026 21:26:44 +0200 Subject: Remove Godot client --- client/Player.cs | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 client/Player.cs (limited to 'client/Player.cs') 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); - } -} -- cgit v1.2.3