cirnogodot/Scenes/Props/Chair.tscn
2025-03-10 15:49:28 +01:00

117 lines
2.9 KiB
Text

[gd_scene load_steps=14 format=3 uid="uid://bjb1xv0ny1qim"]
[ext_resource type="Texture2D" uid="uid://c8rj2wjj7ho3j" path="res://Sprites/Props/Chair.png" id="1_a0rvv"]
[ext_resource type="Script" uid="uid://0hfmpf6i0icv" path="res://Scripts/Actors/Chair.cs" id="1_yxrrg"]
[sub_resource type="AtlasTexture" id="AtlasTexture_yxrrg"]
atlas = ExtResource("1_a0rvv")
region = Rect2(32, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_eq5fp"]
atlas = ExtResource("1_a0rvv")
region = Rect2(16, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_vlpit"]
atlas = ExtResource("1_a0rvv")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_hgjbl"]
atlas = ExtResource("1_a0rvv")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_3qtkp"]
atlas = ExtResource("1_a0rvv")
region = Rect2(32, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_ge7ok"]
atlas = ExtResource("1_a0rvv")
region = Rect2(16, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_t37n8"]
atlas = ExtResource("1_a0rvv")
region = Rect2(48, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_fu0sf"]
atlas = ExtResource("1_a0rvv")
region = Rect2(48, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_hgjbl"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_yxrrg")
}],
"loop": true,
"name": &"Down",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_eq5fp")
}],
"loop": true,
"name": &"Left",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_vlpit")
}],
"loop": true,
"name": &"Right",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_hgjbl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3qtkp")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ge7ok")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t37n8")
}],
"loop": true,
"name": &"Spin",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_fu0sf")
}],
"loop": true,
"name": &"Up",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_a0rvv"]
size = Vector2(7, 10)
[sub_resource type="CircleShape2D" id="CircleShape2D_yxrrg"]
radius = 5.09902
[node name="Chair" type="StaticBody2D"]
collision_layer = 68
collision_mask = 0
script = ExtResource("1_yxrrg")
SpinTime = 1.0
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_hgjbl")
animation = &"Down"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0.5, -1)
shape = SubResource("RectangleShape2D_a0rvv")
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 64
collision_mask = 8
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_yxrrg")
[connection signal="area_entered" from="Area2D" to="." method="OnBulletCollision"]