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,22 @@
extends Node
# Exports
@export var player: PlayerCharacter
@export var arrow_parent: Node2D
# Preloads
const wooden_arrow_scene: PackedScene = preload("uid://b2wq5m01b68rx")
# Private Methods
func _ready() -> void:
var firing_arrow_state: FiringArrowState = player.get_node("State Machine/States/Firing Arrow State")
firing_arrow_state.ArrowFired.connect(_on_arrow_fired)
func _on_arrow_fired(fire_position: Vector2, direction: Vector2) -> void:
var wooden_arrow := wooden_arrow_scene.instantiate() as BaseProjectile
wooden_arrow.SetProjectileStartAndDirection(fire_position, direction)
if arrow_parent == null:
return
arrow_parent.add_child(wooden_arrow)

View File

@@ -0,0 +1 @@
uid://dvgd5ejerauqm