blob: 52221aba1b89dc7ef2bce094f766da7aeee75c55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
extends Control
# member variables here, example:
# var a=2
# var b="textvar"
func _ready():
get_node("score").set_text( "HIGH SCORE: "+str( get_node("/root/game_state").max_points ) )
# Initialization here
pass
func _on_play_pressed():
get_node("/root/game_state").points=0
get_tree().change_scene("res://level.scn")
pass # replace with function body
|