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

@@ -117,7 +117,9 @@ func _on_hitbox_area_entered(area: Area2D) -> void:
hud.update_health(HEALTH_SLICES[health_index])
else:
get_tree().change_scene('res://Levels/Hub World.tscn')
if get_tree().change_scene('res://GUI/Level Failed.tscn') != OK:
print('ERROR: Player failed to change scene to Level Failed.')
queue_free()
return