Implemented win/lose scenes and added fire spinner trap

This commit is contained in:
VoidTwo
2021-12-09 22:55:16 -06:00
parent 8bd4acb6fe
commit 8707397bb7
20 changed files with 577 additions and 90 deletions

View File

@@ -32,6 +32,7 @@ func _on_coin_grabbed() -> void:
func _timer_out() -> void:
get_tree().change_scene('res://Levels/Hub World.tscn')
queue_free()
return
@@ -51,6 +52,6 @@ func _on_DoorDetector_body_entered(body: Node) -> void:
func _on_DoorDetector_area_entered(area: Area2D) -> void:
if area.get_parent().name == 'Player':
print('WIN WIN WIN')
get_tree().change_scene('res://Levels/Hub World.tscn')
get_tree().change_scene('res://GUI/Level Complete.tscn')
queue_free()
return