feat: arrows and stuff
This commit is contained in:
10
arrow/arrow_spawner.gd
Normal file
10
arrow/arrow_spawner.gd
Normal file
@ -0,0 +1,10 @@
|
||||
extends Node2D
|
||||
|
||||
@export var arrow_scene: PackedScene
|
||||
@onready var spawn_timing: Timer = $SpawnTiming
|
||||
|
||||
|
||||
func _on_spawn_timing_timeout() -> void:
|
||||
var arrow: Node2D = arrow_scene.instantiate()
|
||||
arrow.global_position = global_position
|
||||
add_sibling(arrow)
|
Reference in New Issue
Block a user