This commit is contained in:
2023-09-10 15:07:13 -07:00
parent f0f02bbd17
commit ed28a4bb70
10 changed files with 77 additions and 136 deletions

View File

@@ -1,20 +1,17 @@
[gd_scene load_steps=6 format=3 uid="uid://rlxnnw4yay7e"]
[gd_scene load_steps=5 format=3 uid="uid://rlxnnw4yay7e"]
[ext_resource type="Script" path="res://Enemies/Attacks/EnemyBullet.cs" id="1_rv13r"]
[ext_resource type="Texture2D" uid="uid://dd71tdgrgic46" path="res://Textures/Projectiles/LB ORB.png" id="2_6l2aj"]
[ext_resource type="AudioStream" uid="uid://cfj82os5p8i4p" path="res://Audio/SFX/shooting.wav" id="2_q6wdf"]
[ext_resource type="AudioStream" uid="uid://cat08h84wm5gm" path="res://Audio/SFX/ominous.wav" id="3_ov77l"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_e4v7f"]
height = 2.31583
radius = 0.154574
[node name="TestBullet" type="Node3D" node_paths=PackedStringArray("_hitBox")]
[node name="TestBullet" type="Node3D"]
script = ExtResource("1_rv13r")
Cooldown = 3.0
_soundEffect = ExtResource("2_q6wdf")
_onHitSfx = ExtResource("3_ov77l")
_hitBox = NodePath("RigidBody3D")
[node name="RigidBody3D" type="RigidBody3D" parent="."]
collision_layer = 0

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=59 format=3 uid="uid://dahp73fwld24h"]
[gd_scene load_steps=61 format=3 uid="uid://dahp73fwld24h"]
[ext_resource type="Script" path="res://Enemies/Scripts/RangedEnemy.cs" id="1_01lvj"]
[ext_resource type="PackedScene" uid="uid://rlxnnw4yay7e" path="res://Enemies/Attacks/EnemyBullet.tscn" id="3_qenx3"]
@@ -891,10 +891,19 @@ _surfaces = [{
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_j7wsk")
[sub_resource type="Animation" id="Animation_201mc"]
resource_name = "OnHit"
length = 0.2
[sub_resource type="AnimationLibrary" id="AnimationLibrary_f1x7o"]
_data = {
"OnHit": SubResource("Animation_201mc")
}
[node name="CharacterBody" type="CharacterBody3D" node_paths=PackedStringArray("_hp") groups=["Enemy"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.257979, 0)
collision_layer = 0
collision_mask = 9
collision_mask = 5
script = ExtResource("1_01lvj")
_hp = NodePath("HP Component")
@@ -1059,4 +1068,9 @@ skeleton = NodePath("")
[node name="HP Component" parent="." instance=ExtResource("4_1vt55")]
MaximumHP = 2
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_f1x7o")
}
[connection signal="timeout" from="Timer" to="Timer" method="OnFireAtPlayer"]