71 lines
2.3 KiB
Text
71 lines
2.3 KiB
Text
[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
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_eotxf"]
|
|
transparency = 3
|
|
alpha_hash_scale = 1.0
|
|
alpha_antialiasing_mode = 0
|
|
no_depth_test = true
|
|
shading_mode = 0
|
|
albedo_color = Color(1, 0, 0, 0.501961)
|
|
albedo_texture = ExtResource("2_eotxf")
|
|
texture_filter = 0
|
|
billboard_mode = 1
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_ixuei"]
|
|
|
|
[node name="UncannyCat" type="CharacterBody3D" node_paths=PackedStringArray("jumpscare")]
|
|
collision_layer = 32
|
|
collision_mask = 32
|
|
motion_mode = 1
|
|
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")
|
|
|
|
[node name="Sprite3D" type="Sprite3D" parent="."]
|
|
material_overlay = SubResource("StandardMaterial3D_eotxf")
|
|
pixel_size = 0.0313
|
|
billboard = 1
|
|
texture_filter = 0
|
|
texture = ExtResource("2_eotxf")
|
|
|
|
[node name="PlayerDetector" type="Area3D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 16
|
|
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"]
|