summaryrefslogtreecommitdiff
path: root/Scenes/Maps/World3.gd
blob: 1daecb9bc0df9e07f2dd96d73e4f55efb5b89a47 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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").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/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").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"))
	)
	#get_node("Areas/Beta02/Objects").remove_child(get_node("Areas/Beta02/Objects/Wood2"))
	
	get_node("Areas/Beta01/Transitions/Height1").body_entered.connect(func(body):
		body.z_index = 3
	)
	get_node("Areas/Beta01/Transitions/Height1").body_exited.connect(func(body):
		body.z_index = 0
	)
	get_node("Areas/Beta01/Transitions/Height2").body_entered.connect(func(body):
		body.z_index = 5
	)
	get_node("Areas/Beta01/Transitions/Height2").body_exited.connect(func(body):
		body.z_index = 3
	)
	get_node("Areas/Beta02/Transitions/Height1").body_entered.connect(func(body):
		body.z_index = 3
	)
	get_node("Areas/Beta02/Transitions/Height1").body_exited.connect(func(body):
		body.z_index = 0
	)