pre-added levels 08-11

This commit is contained in:
MarcEricMartel
2022-10-12 17:15:50 -04:00
parent 97acd3c840
commit 92f83ec1c8
8 changed files with 480 additions and 0 deletions

28
Levels/Level10.gd Normal file
View File

@@ -0,0 +1,28 @@
extends Spatial
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
var enemycount = 3
onready var NEXTSCENE = "res://Levels/Level11.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)