GameOverScreen.gd (342B)
1 extends Node2D 2 3 4 # Declare member variables here. Examples: 5 # var a = 2 6 # var b = "text" 7 8 var lvl = 0 9 10 # 11 ## Called when the node enters the scene tree for the first time. 12 func _ready(): 13 $Label.text = "lvl: " + String(lvl) 14 15 func _unhandled_input(event): 16 if event is InputEventMouseButton: 17 get_tree().change_scene("res://StartScreen.tscn")