mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:05:34 +00:00
50 lines
1.9 KiB
Text
50 lines
1.9 KiB
Text
[gd_scene load_steps=7 format=3 uid="uid://c27co22bjym3c"]
|
|
|
|
[ext_resource type="Script" path="res://Scripts/Actors/Camera.cs" id="1_2qb38"]
|
|
[ext_resource type="SpriteFrames" uid="uid://yfxog8pww6ih" path="res://Resources/Sprites/Camera.tres" id="2_omkb8"]
|
|
[ext_resource type="Script" 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("_playerDetection")]
|
|
collision_layer = 16
|
|
collision_mask = 75
|
|
script = ExtResource("1_2qb38")
|
|
Health = 1.0
|
|
WalkSpeed = 0.0
|
|
_playerDetection = NodePath("PlayerDetection")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = ExtResource("2_omkb8")
|
|
animation = &"full_scan"
|
|
frame_progress = 0.779565
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_nkpag")
|
|
|
|
[node name="PlayerDetection" type="Area2D" parent="."]
|
|
collision_layer = 16
|
|
collision_mask = 2
|
|
script = ExtResource("3_ax0x5")
|
|
SweepSpeed = 10.0
|
|
Debug = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerDetection"]
|
|
shape = SubResource("CircleShape2D_gs7jc")
|
|
|
|
[node name="DamageHitbox" type="Area2D" parent="."]
|
|
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"]
|