Improved Watcher, added a defeat sound
This commit is contained in:
parent
d1536529e4
commit
207c90a68b
5 changed files with 38 additions and 5 deletions
|
@ -1,9 +1,10 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://ccg3n7sobsvdw"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://ccg3n7sobsvdw"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/enemies/Watcher.cs" id="1_wfhbm"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://dlf2p3eragspn" path="res://sprites/enemies/watcher.tres" id="2_757xa"]
|
||||
[ext_resource type="Texture2D" uid="uid://dlbl6d4yghvht" path="res://sprites/mask.png" id="3_nbgee"]
|
||||
[ext_resource type="PackedScene" uid="uid://cf0wpahgwygxx" path="res://prefabs/light_sense.tscn" id="4_22lca"]
|
||||
[ext_resource type="AudioStream" uid="uid://dsq2yxiprufht" path="res://sounds/enemies/watcher_sigh.ogg" id="5_6i5wl"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_pcaas"]
|
||||
radius = 100.0
|
||||
|
@ -51,8 +52,12 @@ monitorable = false
|
|||
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerCollision"]
|
||||
shape = SubResource("RectangleShape2D_n43vg")
|
||||
|
||||
[node name="SighPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource("5_6i5wl")
|
||||
|
||||
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="AnimationEnded"]
|
||||
[connection signal="area_entered" from="LightSense" to="." method="LightEntered"]
|
||||
[connection signal="area_exited" from="LightSense" to="." method="LightExited"]
|
||||
[connection signal="body_entered" from="Activation" to="." method="PlayerActivated"]
|
||||
[connection signal="body_entered" from="PlayerCollision" to="." method="PlayerEntered"]
|
||||
[connection signal="body_exited" from="PlayerCollision" to="." method="PlayerLeft"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue