Reorganize file structure of project

This commit is contained in:
2026-03-17 14:44:13 -05:00
parent 86e3198645
commit 5a94483ffe
155 changed files with 365 additions and 162 deletions

View File

@@ -0,0 +1,17 @@
extends CharacterBody2D
class_name BaseProjectile
@export var direction: Vector2
@export var speed := 100
# Public Methods
func SetProjectileStartAndDirection(start_position: Vector2, projectile_direction: Vector2) -> void:
position = start_position
direction = projectile_direction
rotation = projectile_direction.angle()
# Private Methods
func _physics_process(delta: float) -> void:
velocity = direction * speed * delta
move_and_slide()