cirnogodot/Scenes/Interactable/Computer.tscn
2025-02-24 11:37:45 +01:00

56 lines
1.5 KiB
Text

[gd_scene load_steps=8 format=3 uid="uid://doqmmuuuprl3s"]
[ext_resource type="Script" uid="uid://duhodrhcnoslh" path="res://Scripts/Interactables/Switch.cs" id="1_62csb"]
[ext_resource type="Texture2D" uid="uid://dfjdl48v8kt2l" path="res://Sprites/Props/Computer2.png" id="2_tlxq6"]
[sub_resource type="CircleShape2D" id="CircleShape2D_wv7xi"]
[sub_resource type="AtlasTexture" id="AtlasTexture_6yfpu"]
atlas = ExtResource("2_tlxq6")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_jl6l5"]
atlas = ExtResource("2_tlxq6")
region = Rect2(16, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_jxgtm"]
atlas = ExtResource("2_tlxq6")
region = Rect2(32, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_7837l"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_6yfpu")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_jl6l5")
}],
"loop": true,
"name": &"left",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_jxgtm")
}],
"loop": true,
"name": &"right",
"speed": 5.0
}]
[node name="Computer" type="Area2D" groups=["Interactable"]]
collision_layer = 4
collision_mask = 2
script = ExtResource("1_62csb")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_wv7xi")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_7837l")