temporary commit

This commit is contained in:
Haze Weathers 2025-07-25 17:56:33 -06:00
parent 8165cda61c
commit 84b689b819
14 changed files with 167 additions and 40 deletions

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=6 format=3 uid="uid://bndtsprfwrkau"]
[gd_scene load_steps=7 format=3 uid="uid://bndtsprfwrkau"]
[ext_resource type="Script" uid="uid://1mhmcaluavhg" path="res://objects/uncanny_cat.gd" id="1_bsm3e"]
[ext_resource type="Texture2D" uid="uid://c2a63sfnh6il" path="res://assets/textures/chaser/uncanny.png" id="2_eotxf"]
[ext_resource type="AudioStream" uid="uid://l6u7480xhrrl" path="res://assets/sounds/enemies/uncanny_jumpscare.ogg" id="3_ixuei"]
[sub_resource type="SphereShape3D" id="SphereShape3D_eotxf"]
radius = 0.45
@ -19,7 +20,7 @@ billboard_mode = 1
[sub_resource type="SphereShape3D" id="SphereShape3D_ixuei"]
[node name="UncannyCat" type="CharacterBody3D"]
[node name="UncannyCat" type="CharacterBody3D" node_paths=PackedStringArray("jumpscare")]
collision_layer = 32
collision_mask = 32
motion_mode = 1
@ -27,6 +28,7 @@ script = ExtResource("1_bsm3e")
acceleration = 0.6
speed = 1.5
vertical_speed = 0.5
jumpscare = NodePath("JumpscareLayer")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("SphereShape3D_eotxf")
@ -45,3 +47,25 @@ monitorable = false
[node name="CollisionShape3D" type="CollisionShape3D" parent="PlayerDetector"]
shape = SubResource("SphereShape3D_ixuei")
[node name="JumpscareLayer" type="CanvasLayer" parent="."]
layer = 2
visible = false
[node name="Jumpscare" type="TextureRect" parent="JumpscareLayer"]
texture_filter = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("2_eotxf")
stretch_mode = 6
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_ixuei")
bus = &"Sounds"
[connection signal="player_caught" from="." to="JumpscareLayer" method="show"]
[connection signal="player_caught" from="." to="AudioStreamPlayer" method="play"]
[connection signal="body_entered" from="PlayerDetector" to="." method="_on_player_detector_body_entered"]