From 0f518727c28d3204415db14c7ca0e4f7cb653677 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Thu, 9 Dec 2021 00:52:59 +0100 Subject: working --- scripts/debug.gd | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 scripts/debug.gd (limited to 'scripts/debug.gd') 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() -- cgit v1.2.3-54-g00ecf