mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 07:35:34 +00:00
54 lines
2.1 KiB
Text
54 lines
2.1 KiB
Text
[gd_scene load_steps=8 format=3 uid="uid://c27co22bjym3c"]
|
|
|
|
[ext_resource type="Script" uid="uid://c534mr1ub2dwl" path="res://Scripts/Actors/Camera.cs" id="1_2qb38"]
|
|
[ext_resource type="PackedScene" uid="uid://bai06iwuli4nj" path="res://Scenes/Actors/BrokenCamera.tscn" id="2_aysqd"]
|
|
[ext_resource type="SpriteFrames" uid="uid://yfxog8pww6ih" path="res://Resources/Sprites/Camera.tres" id="2_omkb8"]
|
|
[ext_resource type="Script" uid="uid://ec2wfevxxgy8" path="res://Scripts/Components/CameraPlayerDetection.cs" id="3_ax0x5"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_nkpag"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_gs7jc"]
|
|
radius = 85.0529
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_3bqsq"]
|
|
size = Vector2(8, 12)
|
|
|
|
[node name="Camera" type="CharacterBody2D" node_paths=PackedStringArray("AlarmActivationTargets", "_playerDetection")]
|
|
collision_layer = 16
|
|
collision_mask = 75
|
|
script = ExtResource("1_2qb38")
|
|
AlarmActivationTargets = []
|
|
Health = 1.0
|
|
WalkSpeed = 0.0
|
|
CorpseTemplate = ExtResource("2_aysqd")
|
|
_playerDetection = NodePath("PlayerDetection")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = ExtResource("2_omkb8")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
visible = false
|
|
shape = SubResource("CircleShape2D_nkpag")
|
|
|
|
[node name="PlayerDetection" type="Area2D" parent="."]
|
|
visible = false
|
|
collision_layer = 16
|
|
collision_mask = 2
|
|
script = ExtResource("3_ax0x5")
|
|
SweepSpeed = 10.0
|
|
SpritePath = NodePath("../AnimatedSprite2D")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerDetection"]
|
|
shape = SubResource("CircleShape2D_gs7jc")
|
|
|
|
[node name="DamageHitbox" type="Area2D" parent="."]
|
|
visible = false
|
|
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"]
|