mirror of
https://github.com/mx42/my-gd-game.git
synced 2026-01-14 13:29:52 +01:00
feat: initial commit
This commit is contained in:
11
scenes/game_over.gd
Normal file
11
scenes/game_over.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
extends Node2D
|
||||
|
||||
@export var scene: PackedScene
|
||||
|
||||
func _ready():
|
||||
$CanvasLayer/VBoxContainer/Score.text += str(Global.score);
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(_delta: float) -> void:
|
||||
if Input.is_action_just_pressed("continue"):
|
||||
get_tree().change_scene_to_packed(scene)
|
||||
Reference in New Issue
Block a user