[gd_scene load_steps=8 format=2] [ext_resource path="res://objects/enemy/eel.gd" type="Script" id=1] [ext_resource path="res://graphics/enemy/eel_head.png" type="Texture" id=2] [ext_resource path="res://graphics/enemy/eel_body.png" type="Texture" id=3] [ext_resource path="res://graphics/enemy/eel_tail.png" type="Texture" id=4] [ext_resource path="res://graphics/enemy/eel_inner_border.png" type="Texture" id=5] [sub_resource type="RectangleShape2D" id=3] extents = Vector2( 2, 2 ) [sub_resource type="RectangleShape2D" id=2] extents = Vector2( 2, 2 ) [node name="Eel" type="Node2D" groups=["enemy"]] script = ExtResource( 1 ) blood = false wave_amplitude = 6.0 [node name="Hitbox" type="Area2D" parent="." groups=["enemy_hitbox"]] position = Vector2( 0, 4 ) [node name="SegmentStart" type="Position2D" parent="Hitbox"] unique_name_in_owner = true position = Vector2( 12, 0 ) __meta__ = { "_gizmo_extents_": 5.0 } [node name="HeadShape" type="CollisionPolygon2D" parent="Hitbox"] position = Vector2( 8, 0 ) polygon = PoolVector2Array( -7, -2, 2, -2, 2, 2, -7, 2 ) [node name="HeadSprite" type="Sprite" parent="Hitbox/HeadShape"] show_behind_parent = true position = Vector2( -4, 0 ) texture = ExtResource( 2 ) [node name="InnerBorder" type="Sprite" parent="Hitbox/HeadShape"] position = Vector2( 3, 0 ) z_index = -1 texture = ExtResource( 5 ) [node name="TailShape" type="CollisionShape2D" parent="Hitbox"] position = Vector2( 16, 0 ) shape = SubResource( 3 ) [node name="TailSprite" type="Sprite" parent="Hitbox/TailShape"] show_behind_parent = true position = Vector2( 2, 0 ) texture = ExtResource( 4 ) [node name="InnerBorder" type="Sprite" parent="Hitbox/TailShape"] position = Vector2( -2, 0 ) z_index = -1 texture = ExtResource( 5 ) [node name="Segment" type="CollisionShape2D" parent="Hitbox"] unique_name_in_owner = true position = Vector2( 12, 0 ) shape = SubResource( 2 ) [node name="SegmentSprite" type="Sprite" parent="Hitbox/Segment"] show_behind_parent = true texture = ExtResource( 3 ) [node name="InnerBorder" type="Sprite" parent="Hitbox/Segment"] position = Vector2( -2, 0 ) z_index = -1 texture = ExtResource( 5 ) [node name="InnerBorder2" type="Sprite" parent="Hitbox/Segment"] position = Vector2( 3, 0 ) z_index = -1 texture = ExtResource( 5 ) [connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"]