Added door closing. Fixed death in the air
This commit is contained in:
+29
-2
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=12 format=3 uid="uid://b7mhdrj3b6loq"]
|
||||
[gd_scene load_steps=15 format=3 uid="uid://b7mhdrj3b6loq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://5uqub2a6701b" path="res://game/doors/door.gd" id="1_vx1od"]
|
||||
[ext_resource type="Material" uid="uid://dojhoc6ljpt1a" path="res://game/materials/gray_walls.tres" id="1_xelsh"]
|
||||
@@ -14,6 +14,18 @@ size = Vector2(48, 48)
|
||||
atlas = ExtResource("3_ymlcn")
|
||||
region = Rect2(0, 0, 32, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8lhfw"]
|
||||
atlas = ExtResource("3_ymlcn")
|
||||
region = Rect2(64, 0, 32, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qci2x"]
|
||||
atlas = ExtResource("3_ymlcn")
|
||||
region = Rect2(32, 0, 32, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4vug2"]
|
||||
atlas = ExtResource("3_ymlcn")
|
||||
region = Rect2(0, 0, 32, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ymlcn"]
|
||||
atlas = ExtResource("3_ymlcn")
|
||||
region = Rect2(64, 0, 32, 48)
|
||||
@@ -42,6 +54,20 @@ animations = [{
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8lhfw")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qci2x")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_4vug2")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"closing",
|
||||
"speed": 10.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ymlcn")
|
||||
}],
|
||||
"loop": true,
|
||||
@@ -85,7 +111,8 @@ shape = SubResource("RectangleShape2D_u7b5a")
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
material = ExtResource("1_xelsh")
|
||||
sprite_frames = SubResource("SpriteFrames_r8rhb")
|
||||
animation = &"opening"
|
||||
animation = &"closing"
|
||||
|
||||
[connection signal="body_entered" from="Area2D" to="." method="_on_area_entered"]
|
||||
[connection signal="body_exited" from="Area2D" to="." method="_on_area_exited"]
|
||||
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animation_finished"]
|
||||
|
||||
Reference in New Issue
Block a user