blob: 70b4b017914ad286cce432fa74b1425ab5caa4bf (
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
|
extends Level
const button = preload("res://components/button.tscn")
var _continue
func _ready():
_continue = button.instance()
_continue.position = Vector2(0, 300)
_continue.visible = false
_continue.text = "Continue"
_continue.connect("on_click", self, "cont")
$TextrevealBox.connect("finished_reveal", self, "show_continue")
add_child(_continue)
func cont():
finish_level()
func show_continue():
_continue.visible = true
func start():
.start()
$TextrevealBox.start()
|