Added player and a basic test level

This commit is contained in:
2026-02-06 16:00:03 -05:00
parent 1b0f1c9080
commit 83a4a8f374
104 changed files with 6897 additions and 0 deletions

11
utilities/Util.gd Normal file
View File

@@ -0,0 +1,11 @@
class_name Util
extends Node
#add effects
static func add_effect_to_self(node: Node, effect: PackedScene) -> void:
#instantiate the packed scene
var nodeInstance: Node = effect.instantiate()
#gets the nodes global postion and makes the node instance global position that
nodeInstance.global_position = node.global_position
#adds it to the scene
node.get_parent().add_child(nodeInstance)