mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:15:45 +00:00
Camera fix and broken
This commit is contained in:
parent
91fcd73688
commit
dd9c666995
10 changed files with 202 additions and 139 deletions
|
|
@ -1,6 +1,7 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://c27co22bjym3c"]
|
||||
[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"]
|
||||
|
||||
|
|
@ -18,6 +19,7 @@ collision_mask = 75
|
|||
script = ExtResource("1_2qb38")
|
||||
Health = 1.0
|
||||
WalkSpeed = 0.0
|
||||
CorpseTemplate = ExtResource("2_aysqd")
|
||||
_playerDetection = NodePath("PlayerDetection")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
|
|
@ -28,11 +30,11 @@ 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
|
||||
Debug = true
|
||||
SpritePath = NodePath("../AnimatedSprite2D")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerDetection"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue