Added pickups and doors

This commit is contained in:
2026-01-07 17:33:42 +03:00
parent 33bbac64a1
commit 33cbfeebb9
40 changed files with 732 additions and 5 deletions
+64
View File
@@ -0,0 +1,64 @@
[gd_scene load_steps=10 format=3 uid="uid://dwvv5dj8lqif2"]
[ext_resource type="PackedScene" uid="uid://cojxqx5al7kyv" path="res://game/doors/closed_door.tscn" id="1_l21ff"]
[ext_resource type="Script" uid="uid://d4lrt6yw0knf7" path="res://game/doors/triangle_door.gd" id="2_ifpbb"]
[ext_resource type="Texture2D" uid="uid://sfjjweantpja" path="res://images/level/doors.png" id="3_eqipl"]
[sub_resource type="AtlasTexture" id="AtlasTexture_rb7ia"]
atlas = ExtResource("3_eqipl")
region = Rect2(0, 192, 32, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_1a8ca"]
atlas = ExtResource("3_eqipl")
region = Rect2(64, 192, 32, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_nkv11"]
atlas = ExtResource("3_eqipl")
region = Rect2(0, 192, 32, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_qx6bn"]
atlas = ExtResource("3_eqipl")
region = Rect2(32, 192, 32, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_vlkqk"]
atlas = ExtResource("3_eqipl")
region = Rect2(64, 192, 32, 48)
[sub_resource type="SpriteFrames" id="SpriteFrames_o203p"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_rb7ia")
}],
"loop": true,
"name": &"closed",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_1a8ca")
}],
"loop": true,
"name": &"open",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_nkv11")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qx6bn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vlkqk")
}],
"loop": false,
"name": &"opening",
"speed": 10.0
}]
[node name="TriangleDoor" instance=ExtResource("1_l21ff")]
script = ExtResource("2_ifpbb")
[node name="AnimatedSprite2D" parent="." index="2"]
sprite_frames = SubResource("SpriteFrames_o203p")