Added door closing. Fixed death in the air
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://dioc4r03dfleq"]
|
||||
[gd_scene load_steps=13 format=3 uid="uid://dioc4r03dfleq"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cojxqx5al7kyv" path="res://game/doors/closed_door.tscn" id="1_p87ci"]
|
||||
[ext_resource type="Script" uid="uid://befuova1g4tth" path="res://game/doors/book_door.gd" id="2_atb6l"]
|
||||
@@ -8,6 +8,18 @@
|
||||
atlas = ExtResource("3_gbgmk")
|
||||
region = Rect2(0, 240, 32, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gbgmk"]
|
||||
atlas = ExtResource("3_gbgmk")
|
||||
region = Rect2(64, 240, 32, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3d7ts"]
|
||||
atlas = ExtResource("3_gbgmk")
|
||||
region = Rect2(32, 240, 32, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_u0yk6"]
|
||||
atlas = ExtResource("3_gbgmk")
|
||||
region = Rect2(0, 240, 32, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_g21nq"]
|
||||
atlas = ExtResource("3_gbgmk")
|
||||
region = Rect2(64, 240, 32, 48)
|
||||
@@ -36,6 +48,20 @@ animations = [{
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gbgmk")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3d7ts")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_u0yk6")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"closing",
|
||||
"speed": 10.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_g21nq")
|
||||
}],
|
||||
"loop": true,
|
||||
@@ -62,4 +88,3 @@ script = ExtResource("2_atb6l")
|
||||
|
||||
[node name="AnimatedSprite2D" parent="." index="2"]
|
||||
sprite_frames = SubResource("SpriteFrames_3d7ts")
|
||||
animation = &"opening"
|
||||
|
||||
Reference in New Issue
Block a user