Added pickups and doors
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
[gd_scene load_steps=10 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"]
|
||||
[ext_resource type="Texture2D" uid="uid://sfjjweantpja" path="res://images/level/doors.png" id="3_gbgmk"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_e14gj"]
|
||||
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)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_op86a"]
|
||||
atlas = ExtResource("3_gbgmk")
|
||||
region = Rect2(0, 240, 32, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_fw6sy"]
|
||||
atlas = ExtResource("3_gbgmk")
|
||||
region = Rect2(32, 240, 32, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_m0nqq"]
|
||||
atlas = ExtResource("3_gbgmk")
|
||||
region = Rect2(64, 240, 32, 48)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_3d7ts"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_e14gj")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"closed",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_g21nq")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"open",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_op86a")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_fw6sy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_m0nqq")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"opening",
|
||||
"speed": 10.0
|
||||
}]
|
||||
|
||||
[node name="BookDoor" instance=ExtResource("1_p87ci")]
|
||||
script = ExtResource("2_atb6l")
|
||||
|
||||
[node name="AnimatedSprite2D" parent="." index="2"]
|
||||
sprite_frames = SubResource("SpriteFrames_3d7ts")
|
||||
animation = &"opening"
|
||||
Reference in New Issue
Block a user