diff options
author | jacopograndi <jacopo.grandi@outlook.it> | 2021-12-09 00:52:59 +0100 |
---|---|---|
committer | jacopograndi <jacopo.grandi@outlook.it> | 2021-12-09 00:52:59 +0100 |
commit | 0f518727c28d3204415db14c7ca0e4f7cb653677 (patch) | |
tree | a595121771b69a52f17154d8e5c61b7e4b2b8190 /scripts/debug.gd |
working
Diffstat (limited to 'scripts/debug.gd')
-rw-r--r-- | scripts/debug.gd | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/debug.gd b/scripts/debug.gd new file mode 100644 index 0000000..339eec7 --- /dev/null +++ b/scripts/debug.gd @@ -0,0 +1,22 @@ +extends Panel + +var _player +var _path +var _enemies + +func _ready(): + _path = get_tree().root.get_child(0).find_node("path") + _player = get_tree().root.get_child(0).find_node("player") + _enemies = get_tree().root.get_child(0).find_node("enemies") + +func _process(delta): + pass + + +func _on_Button_button_down(): + _enemies.spawn() + + +func _on_Button2_button_down(): + var res = _path.load_nodes() + _path.hide() |