Added pickups and doors
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://b7imlh4sl036i"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cojxqx5al7kyv" path="res://game/doors/closed_door.tscn" id="1_jg0qv"]
|
||||
[ext_resource type="Script" uid="uid://mp2dfsd1uk5p" path="res://game/doors/square_door.gd" id="2_wyn1t"]
|
||||
[ext_resource type="Texture2D" uid="uid://sfjjweantpja" path="res://images/level/doors.png" id="3_txk00"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qhb0j"]
|
||||
atlas = ExtResource("3_txk00")
|
||||
region = Rect2(0, 144, 32, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_rwkr8"]
|
||||
atlas = ExtResource("3_txk00")
|
||||
region = Rect2(64, 144, 32, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pw0e3"]
|
||||
atlas = ExtResource("3_txk00")
|
||||
region = Rect2(0, 144, 32, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tlxsa"]
|
||||
atlas = ExtResource("3_txk00")
|
||||
region = Rect2(32, 144, 32, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_05hqc"]
|
||||
atlas = ExtResource("3_txk00")
|
||||
region = Rect2(64, 144, 32, 48)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_wk632"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qhb0j")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"closed",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_rwkr8")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"open",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pw0e3")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tlxsa")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_05hqc")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"opening",
|
||||
"speed": 10.0
|
||||
}]
|
||||
|
||||
[node name="SquareDoor" instance=ExtResource("1_jg0qv")]
|
||||
script = ExtResource("2_wyn1t")
|
||||
|
||||
[node name="AnimatedSprite2D" parent="." index="2"]
|
||||
sprite_frames = SubResource("SpriteFrames_wk632")
|
||||
Reference in New Issue
Block a user