lashy improvements

This commit is contained in:
Haze Weathers 2025-03-09 07:19:11 -04:00
parent 19c8ee9566
commit 677480ad3d
6 changed files with 161 additions and 32 deletions

View file

@ -2,6 +2,7 @@
[ext_resource type="Script" uid="uid://lxppe1op1240" path="res://objects/enemies/lashy/lashy.gd" id="1_34o54"]
[ext_resource type="Texture2D" uid="uid://cm4cantqbhkwx" path="res://assets/textures/enemies/lashy/lashy_anchor.png" id="2_8ls3k"]
[ext_resource type="PackedScene" uid="uid://bcgj0wb1ra11e" path="res://objects/enemies/lashy/blast_star.tscn" id="2_42oum"]
[ext_resource type="Script" uid="uid://bt4bdjyekgh53" path="res://scripts/ball_snake/ball_snake.gd" id="3_8edxw"]
[ext_resource type="Texture2D" uid="uid://gnkke4rr0wcr" path="res://assets/textures/enemies/lashy/lashy_body.png" id="4_xnkdk"]
[ext_resource type="Texture2D" uid="uid://bf0i64q2dw0au" path="res://assets/textures/enemies/lashy/lashy_head.png" id="5_b5g1y"]
@ -17,18 +18,16 @@ shader = ExtResource("5_dkkk6")
shader_parameter/radius = 6.0
shader_parameter/speed = 3.142
[sub_resource type="CircleShape2D" id="CircleShape2D_g5iss"]
radius = 6.0
[node name="Lashy" type="Node2D" node_paths=PackedStringArray("head")]
script = ExtResource("1_34o54")
launch_power = 240.0
idle_radius = 4.0
draw_back_distance = 24.0
smash_distance = 32.0
time_draw_back = 0.2
time_draw_back = 0.1
time_smash = 0.2
time_recover = 0.1
smash_effect = ExtResource("2_42oum")
head = NodePath("Head")
[node name="PlayerDetector" type="Area2D" parent="."]
@ -52,20 +51,9 @@ head_segment = false
auto_density = true
pixels_per_segment = 5.0
[node name="Head" type="Area2D" parent="."]
[node name="Head" type="Sprite2D" parent="."]
material = SubResource("ShaderMaterial_42oum")
collision_layer = 0
collision_mask = 16
monitorable = false
metadata/_edit_group_ = true
[node name="HeadSprite" type="Sprite2D" parent="Head"]
use_parent_material = true
texture = ExtResource("5_b5g1y")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Head"]
shape = SubResource("CircleShape2D_g5iss")
debug_color = Color(1, 0, 0, 0.419608)
[connection signal="body_entered" from="PlayerDetector" to="." method="_on_player_detector_body_entered"]
[connection signal="body_entered" from="Head" to="." method="_on_head_body_entered"]
[connection signal="body_exited" from="PlayerDetector" to="." method="_on_player_detector_body_exited"]