aboutsummaryrefslogtreecommitdiff
path: root/scripts/debug.gd
blob: b65bd79f2e6e19a600b2a413837377a1bcf5b8fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
extends Panel

var _player
var _path
var _enemies

func _ready():
	_path = get_tree().root.get_child(0).get_node("path")
	_player = get_tree().root.get_child(0).get_node("player")
	_enemies = get_tree().root.get_child(0).get_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()