summaryrefslogtreecommitdiff
path: root/Scenes/Maps/World3.gd
blob: ad92435763f4b94011bcf3ac9ec3f0b82cd8bc2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
extends "res://Scenes/Maps/Map.gd"

func _ready():
	super._ready()
	
	get_node("Areas/Alpha/Objects/Sign").connect("interacted", func():
		Utilities.dialog("Alpha/alpha-sign")
	)
	
	get_node("Areas/AlphaBeta06/Objects/Sign").connect("interacted", func():
		Utilities.dialog("Alpha/alpha-sign")
	)
	
	get_node("Areas/Beta01/Objects/Button").connect("pressed", func():
		get_node("Areas/Beta01/Objects").remove_child(get_node("Areas/Beta01/Objects/Wood"))
	)
	get_node("Areas/Beta01/Objects/Button2").connect("pressed", func():
		get_node("Areas/Beta01/Objects").remove_child(get_node("Areas/Beta01/Objects/Wood2"))
	)
	
	get_node("Areas/Beta02/Objects/Button").connect("pressed", func():
		get_node("Areas/Beta02/Objects").remove_child(get_node("Areas/Beta02/Objects/Wood"))
	)
	get_node("Areas/Beta02/Objects/Button2").connect("pressed", func():
		get_node("Areas/Beta02/Objects").remove_child(get_node("Areas/Beta02/Objects/Wood2"))
	)