fixed basic movement, now add world loading

This commit is contained in:
anonoe 2026-02-09 22:44:11 +01:00
parent 34ba37312a
commit 50f37ebc5f
Signed by: anonoe
SSH key fingerprint: SHA256:OnAs6gNQelOnDiY5tBpDYKQiuTgBvnmIdMo5P09cdqg
23 changed files with 482 additions and 27 deletions

View file

@ -1,18 +0,0 @@
/// <summary>
/// Moves the player using top-down controls.
/// </summary>
using Godot;
//using System;
public partial class Player : CharacterBody2D
{
[Export] public float Speed = 220f;
public override void _PhysicsProcess(double delta)
{
Vector2 input = Input.GetVector("ui_left", "ui_right", "ui_up", "ui_down");
Velocity = input * Speed;
MoveAndSlide();
}
}