lashy's full forme
This commit is contained in:
parent
aaf9278350
commit
19c8ee9566
5 changed files with 91 additions and 103 deletions
|
@ -1,31 +1,35 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://c8r040r4glui4"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://c8r040r4glui4"]
|
||||
|
||||
[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="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"]
|
||||
[ext_resource type="Shader" uid="uid://bc8j5jyjynbca" path="res://assets/shaders/orbit.gdshader" id="5_dkkk6"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_woon5"]
|
||||
resource_local_to_scene = true
|
||||
radius = 64.0
|
||||
radius = 32.0
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_42oum"]
|
||||
resource_local_to_scene = true
|
||||
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", "head_pivot", "detector_shape")]
|
||||
[node name="Lashy" type="Node2D" node_paths=PackedStringArray("head")]
|
||||
script = ExtResource("1_34o54")
|
||||
idle_distance = 16.0
|
||||
idle_rotate_speed = 1.5708
|
||||
wind_up_time = 2.0
|
||||
wind_up_distance = 32.0
|
||||
attack_time = 0.5
|
||||
attack_distance = 64.0
|
||||
recover_time = 2.0
|
||||
detection_radius = 64.0
|
||||
head = NodePath("HeadPivot/Head")
|
||||
head_pivot = NodePath("HeadPivot")
|
||||
detector_shape = NodePath("PlayerDetector/DetectorShape")
|
||||
launch_power = 240.0
|
||||
idle_radius = 4.0
|
||||
draw_back_distance = 24.0
|
||||
smash_distance = 32.0
|
||||
time_draw_back = 0.2
|
||||
time_smash = 0.2
|
||||
time_recover = 0.1
|
||||
head = NodePath("Head")
|
||||
|
||||
[node name="PlayerDetector" type="Area2D" parent="."]
|
||||
collision_layer = 0
|
||||
|
@ -39,34 +43,29 @@ debug_color = Color(0.752941, 0.196078, 1, 0.25098)
|
|||
[node name="Anchor" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("2_8ls3k")
|
||||
|
||||
[node name="BallSnake" type="Node2D" parent="." node_paths=PackedStringArray("target")]
|
||||
[node name="BallSnake" type="Node2D" parent="Anchor" node_paths=PackedStringArray("target")]
|
||||
script = ExtResource("3_8edxw")
|
||||
texture = ExtResource("4_xnkdk")
|
||||
target = NodePath("../HeadPivot/Head")
|
||||
segments = 2
|
||||
target = NodePath("../../Head")
|
||||
segments = -1
|
||||
head_segment = false
|
||||
tail_segment = true
|
||||
auto_density = true
|
||||
pixels_per_segment = 5.0
|
||||
|
||||
[node name="HeadSprite" type="Sprite2D" parent="."]
|
||||
position = Vector2(-5.79198e-05, -16)
|
||||
texture = ExtResource("5_b5g1y")
|
||||
|
||||
[node name="HeadPivot" type="Node2D" parent="."]
|
||||
rotation = -1.5708
|
||||
|
||||
[node name="Head" type="Area2D" parent="HeadPivot"]
|
||||
position = Vector2(16, 0)
|
||||
[node name="Head" type="Area2D" parent="."]
|
||||
material = SubResource("ShaderMaterial_42oum")
|
||||
collision_layer = 0
|
||||
collision_mask = 16
|
||||
monitorable = false
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="HeadPivot/Head"]
|
||||
[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)
|
||||
|
||||
[node name="RemoteTransform2D" type="RemoteTransform2D" parent="HeadPivot/Head"]
|
||||
remote_path = NodePath("../../../HeadSprite")
|
||||
update_rotation = false
|
||||
update_scale = false
|
||||
|
||||
[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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue