mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 08:55:35 +00:00
35 lines
1.3 KiB
Text
35 lines
1.3 KiB
Text
[gd_scene load_steps=6 format=3 uid="uid://bjb1xv0ny1qim"]
|
|
|
|
[ext_resource type="Script" uid="uid://0hfmpf6i0icv" path="res://Scripts/Actors/Chair.cs" id="1_yxrrg"]
|
|
[ext_resource type="SpriteFrames" uid="uid://sg77hbw6lo6r" path="res://Resources/Sprites/Chair.tres" id="2_eq5fp"]
|
|
[ext_resource type="Script" uid="uid://rlevd6krqglv" path="res://Scripts/Components/SpriteAnimationStartupRotator.cs" id="3_eq5fp"]
|
|
|
|
[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 = ExtResource("2_eq5fp")
|
|
animation = &"Down"
|
|
script = ExtResource("3_eq5fp")
|
|
|
|
[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"]
|