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

View File

@@ -10,11 +10,6 @@
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 4 ) ],
"loop": false,
"name": "look_up",
"speed": 5.0
}, {
"frames": [ ExtResource( 2 ) ],
"loop": false,
"name": "look_right",
@@ -29,6 +24,11 @@ animations = [ {
"loop": false,
"name": "look_left",
"speed": 5.0
}, {
"frames": [ ExtResource( 4 ) ],
"loop": false,
"name": "look_up",
"speed": 5.0
} ]
[sub_resource type="CapsuleShape2D" id=2]