summaryrefslogtreecommitdiff
path: root/demos/2d/space_shooter/main_menu.gd
blob: 0c7e0de542cba5d32b0e0b07d7452faf5d40d2c4 (plain)
1
2
3
4
5
6
7
8
9
10
11

extends Control


func _ready():
	get_node("score").set_text("HIGH SCORE: " + str(get_node("/root/game_state").max_points))


func _on_play_pressed():
	get_node("/root/game_state").points = 0
	get_tree().change_scene("res://level.tscn")