Implemented win/lose scenes and added fire spinner trap
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
@@ -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]
|
||||
|
Reference in New Issue
Block a user