cirnogodot/Scenes/Actors/Camera.tscn

54 lines
2.1 KiB
Text
Raw Normal View History

2025-03-02 18:07:13 +01:00
[gd_scene load_steps=8 format=3 uid="uid://c27co22bjym3c"]
2025-02-02 09:10:42 +01:00
2025-02-24 11:37:45 +01:00
[ext_resource type="Script" uid="uid://c534mr1ub2dwl" path="res://Scripts/Actors/Camera.cs" id="1_2qb38"]
2025-03-02 18:07:13 +01:00
[ext_resource type="PackedScene" uid="uid://bai06iwuli4nj" path="res://Scenes/Actors/BrokenCamera.tscn" id="2_aysqd"]
2025-02-04 13:22:05 +01:00
[ext_resource type="SpriteFrames" uid="uid://yfxog8pww6ih" path="res://Resources/Sprites/Camera.tres" id="2_omkb8"]
2025-02-24 11:37:45 +01:00
[ext_resource type="Script" uid="uid://ec2wfevxxgy8" path="res://Scripts/Components/CameraPlayerDetection.cs" id="3_ax0x5"]
2025-02-02 09:10:42 +01:00
2025-02-04 13:22:05 +01:00
[sub_resource type="CircleShape2D" id="CircleShape2D_nkpag"]
2025-02-02 09:10:42 +01:00
2025-02-04 13:22:05 +01:00
[sub_resource type="CircleShape2D" id="CircleShape2D_gs7jc"]
radius = 85.0529
2025-02-02 09:10:42 +01:00
2025-02-04 13:22:05 +01:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_3bqsq"]
size = Vector2(8, 12)
2025-02-02 23:44:44 +01:00
2025-03-27 21:13:22 +01:00
[node name="Camera" type="CharacterBody2D" node_paths=PackedStringArray("AlarmActivationTargets", "_playerDetection")]
2025-02-02 23:44:44 +01:00
collision_layer = 16
2025-02-04 18:17:36 +01:00
collision_mask = 75
2025-02-02 09:10:42 +01:00
script = ExtResource("1_2qb38")
2025-03-27 21:13:22 +01:00
AlarmActivationTargets = []
2025-02-04 13:22:05 +01:00
Health = 1.0
WalkSpeed = 0.0
2025-03-02 18:07:13 +01:00
CorpseTemplate = ExtResource("2_aysqd")
2025-02-04 13:22:05 +01:00
_playerDetection = NodePath("PlayerDetection")
2025-02-02 09:10:42 +01:00
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
2025-02-04 13:22:05 +01:00
sprite_frames = ExtResource("2_omkb8")
2025-02-02 23:44:44 +01:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
2025-02-11 17:55:50 +01:00
visible = false
2025-02-02 23:44:44 +01:00
shape = SubResource("CircleShape2D_nkpag")
2025-02-04 13:22:05 +01:00
[node name="PlayerDetection" type="Area2D" parent="."]
2025-03-27 21:13:22 +01:00
visible = false
2025-02-04 13:22:05 +01:00
collision_layer = 16
collision_mask = 2
2025-02-04 18:17:36 +01:00
script = ExtResource("3_ax0x5")
SweepSpeed = 10.0
2025-02-05 09:40:24 +01:00
SpritePath = NodePath("../AnimatedSprite2D")
2025-02-04 13:22:05 +01:00
2025-02-04 18:17:36 +01:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerDetection"]
2025-02-04 13:22:05 +01:00
shape = SubResource("CircleShape2D_gs7jc")
[node name="DamageHitbox" type="Area2D" parent="."]
2025-02-11 17:55:50 +01:00
visible = false
2025-02-04 13:22:05 +01:00
collision_layer = 16
collision_mask = 9
[node name="CollisionShape2D" type="CollisionShape2D" parent="DamageHitbox"]
shape = SubResource("RectangleShape2D_3bqsq")
[connection signal="area_entered" from="PlayerDetection" to="PlayerDetection" method="_on_area_entered"]
[connection signal="area_exited" from="PlayerDetection" to="PlayerDetection" method="_on_area_exited"]
[connection signal="area_entered" from="DamageHitbox" to="." method="_on_damage_hitbox_area_entered"]