improved menu

This commit is contained in:
zoe 2021-09-14 12:22:39 +02:00
parent 2637008a33
commit 81bc9fa37f
59 changed files with 783 additions and 78 deletions

12
Menu/LevelInfo.gd Normal file
View file

@ -0,0 +1,12 @@
extends VBoxContainer
func _ready():
var _game_stats = GameStats.connect("current_stage_changed", self, "update_info")
func update_info(stage):
$HBoxContainer/PlayButton.disabled = false
var Stage = load(stage)
stage = Stage.instance()
$ScoreLabel.text = stage.stage_name
$HBoxContainer/PlayButton.visible = true