init commit

This commit is contained in:
2025-04-26 10:41:46 -05:00
commit 8a1166fc19
94 changed files with 4374 additions and 0 deletions

17
entities/player/player.gd Normal file
View File

@@ -0,0 +1,17 @@
extends CharacterBody2D
const SPEED = 300.0
func _physics_process(delta: float) -> void:
# Get the input direction and handle the movement/deceleration.
# As good practice, you should replace UI actions with custom gameplay actions.
var direction := Input.get_vector("ui_left", "ui_right","ui_up", "ui_down")
if direction:
velocity = direction * SPEED
else:
velocity = lerp(velocity, Vector2.ZERO, 0.75)
move_and_slide()