lvl4 design

This commit is contained in:
MarcEricMartel
2022-10-12 15:46:47 -04:00
parent c49a72528b
commit 840b9c1aea
3 changed files with 138 additions and 1 deletions

28
Levels/Level04.gd Normal file
View File

@@ -0,0 +1,28 @@
extends Spatial
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
var enemycount = 2
onready var NEXTSCENE = "res://Level05.tscn"
onready var WinMess = $Messages/Win
onready var EndTimer = $End
onready var HUD = $"Player/HUD/MenuLayer/Start"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func _on_Enemy_dying():
enemycount -= 1
if enemycount == 0:
WinMess.show()
EndTimer.start()
func _on_Win_timeout():
get_tree().change_scene(NEXTSCENE)