mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 09:55:35 +00:00
45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
[gd_scene load_steps=7 format=3 uid="uid://b0pb078xylxy"]
|
|
|
|
[ext_resource type="Script" path="res://Scripts/Interactables/Valve.cs" id="1_d6av1"]
|
|
[ext_resource type="Texture2D" uid="uid://dgorww4m2rfqf" path="res://Sprites/Actors/Valve.png" id="2_bapfy"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_vvpve"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_oj5hl"]
|
|
atlas = ExtResource("2_bapfy")
|
|
region = Rect2(0, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_q1xli"]
|
|
atlas = ExtResource("2_bapfy")
|
|
region = Rect2(16, 0, 16, 16)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_n48sd"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_oj5hl")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Closed",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_q1xli")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Open",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[node name="Valve" type="Area2D" groups=["Interactable"]]
|
|
collision_layer = 4
|
|
collision_mask = 2
|
|
script = ExtResource("1_d6av1")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_vvpve")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_n48sd")
|
|
animation = &"Open"
|