Refactor projectiles
This commit is contained in:
@@ -1,19 +1,36 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://cyn2wn6ffsnu7"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://cyn2wn6ffsnu7"]
|
||||
|
||||
[ext_resource type="Script" path="res://Player/Pisces/Attacks/SingleShot.cs" id="1_18l5k"]
|
||||
[ext_resource type="Script" path="res://Player/Base/Projectile.cs" id="1_62kpd"]
|
||||
[ext_resource type="AudioStream" uid="uid://cw1jlubd7wmw6" path="res://Audio/SFX/blue laser.wav" id="2_7lbn3"]
|
||||
[ext_resource type="Texture2D" uid="uid://kecmkchurnin" path="res://Textures/Projectiles/Projectile_Pisces_SingleAttack.png" id="2_d8lwd"]
|
||||
|
||||
[sub_resource type="Curve3D" id="Curve3D_do6j1"]
|
||||
_data = {
|
||||
"points": PackedVector3Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.008, 0, -5),
|
||||
"tilts": PackedFloat32Array(0, 0)
|
||||
}
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_njobr"]
|
||||
radius = 0.3
|
||||
|
||||
[node name="Single" type="Node3D"]
|
||||
script = ExtResource("1_18l5k")
|
||||
Cooldown = 0.3
|
||||
script = ExtResource("1_62kpd")
|
||||
Cooldown = 1.0
|
||||
_soundEffect = ExtResource("2_7lbn3")
|
||||
_projectileSpeed = 10.0
|
||||
|
||||
[node name="RigidBody3D" type="RigidBody3D" parent="."]
|
||||
[node name="Center Shot" type="Path3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, -0.25)
|
||||
top_level = true
|
||||
curve = SubResource("Curve3D_do6j1")
|
||||
|
||||
[node name="PathFollow3D" type="PathFollow3D" parent="Center Shot"]
|
||||
transform = Transform3D(-0.999998, 0, 0.00159994, 0, 1, 0, -0.00159994, 0, -0.999998, 0, 0, 0)
|
||||
loop = false
|
||||
tilt_enabled = false
|
||||
|
||||
[node name="Hitbox" type="RigidBody3D" parent="Center Shot/PathFollow3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
|
||||
collision_layer = 34
|
||||
collision_mask = 34
|
||||
gravity_scale = 0.0
|
||||
@@ -22,19 +39,12 @@ max_contacts_reported = 1000
|
||||
contact_monitor = true
|
||||
can_sleep = false
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D"]
|
||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0.644825, 0)
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Center Shot/PathFollow3D/Hitbox"]
|
||||
transform = Transform3D(0.5, 0, -7.10543e-15, 0, 0.5, 0, 7.10543e-15, 0, 0.5, 0, 0, 0)
|
||||
shape = SubResource("CylinderShape3D_njobr")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="RigidBody3D/CollisionShape3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.31565, 0.765425, 0.303541)
|
||||
[node name="Sprite3D" type="Sprite3D" parent="Center Shot/PathFollow3D/Hitbox/CollisionShape3D"]
|
||||
transform = Transform3D(1, 0, -3.55271e-14, 0, 1, 0, 3.55271e-14, 0, 1, -0.299847, 0, 0.288742)
|
||||
centered = false
|
||||
axis = 1
|
||||
texture = ExtResource("2_d8lwd")
|
||||
|
||||
[node name="TTL" type="Timer" parent="."]
|
||||
process_callback = 0
|
||||
wait_time = 0.8
|
||||
autostart = true
|
||||
|
||||
[connection signal="timeout" from="TTL" to="." method="OnTimeToLiveTimeout"]
|
||||
|
||||
Reference in New Issue
Block a user