-
Notifications
You must be signed in to change notification settings - Fork 0
/
agni.gd
46 lines (35 loc) · 1.21 KB
/
agni.gd
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
extends Level
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
var meet_cute = preload("res://agni_meet_cute.tscn").instantiate()
meet_cute.player = player
add_child(meet_cute)
await meet_cute.done
var picnic := preload("res://agni_picnic.tscn").instantiate()
picnic.player = player
add_child(picnic)
await picnic.done
var sorting_interlude := preload("res://sorting_interlude.tscn").instantiate()
sorting_interlude.player = player
add_child(sorting_interlude)
await sorting_interlude.done
var sorting_game := preload("res://sorting_game.tscn").instantiate()
add_child(sorting_game)
var res = await sorting_game.end
var mistakes: int = res[0]
var time_left: int = res[1]
var post_game := preload("res://agni_post_game.tscn").instantiate()
post_game.mistakes = mistakes
post_game.time_left = time_left
post_game.player = player
add_child(post_game)
await post_game.done
var confession := preload("res://agni_confession.tscn").instantiate()
confession.player = player
add_child(confession)
await confession.done
var endings := preload("res://agni_endings.tscn").instantiate()
endings.player = player
add_child(endings)
await endings.done
done.emit()