68 lines
2.2 KiB
Plaintext

[gd_scene load_steps=8 format=2]
[ext_resource path="res://Hazards/Piranha/Piranha2.png" type="Texture" id=1]
[ext_resource path="res://Hazards/Piranha/Piranha1.png" type="Texture" id=2]
[ext_resource path="res://Hazards/Piranha/Piranha.gd" type="Script" id=3]
[ext_resource path="res://Hazards/Piranha/Sword.png" type="Texture" id=4]
[sub_resource type="CapsuleShape2D" id=1]
height = 302.0
[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 2 ), ExtResource( 1 ) ],
"loop": true,
"name": "default",
"speed": 3.0
} ]
[sub_resource type="CircleShape2D" id=3]
radius = 361.001
[node name="Piranha" type="Node2D" groups=["Piranha"]]
script = ExtResource( 3 )
[node name="SwordPivot" type="Position2D" parent="."]
position = Vector2( 4, 1 )
rotation = 6.28319
[node name="Sword" type="Sprite" parent="SwordPivot"]
position = Vector2( 248, -0.00110769 )
rotation = 1.5708
texture = ExtResource( 4 )
[node name="SwordHitbox" type="Area2D" parent="SwordPivot"]
[node name="StandinArt" type="Polygon2D" parent="SwordPivot/SwordHitbox"]
visible = false
position = Vector2( -212, 8.00004 )
polygon = PoolVector2Array( 458, -9, 467, -28, 524, -29, 523, -56, 546, -56, 547, -32, 781, -29, 906, -8, 782, 12, 549, 10, 550, 37, 526, 37, 524, 10, 466, 10 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="SwordPivot/SwordHitbox"]
position = Vector2( 178, -1.0008 )
rotation = 1.5708
shape = SubResource( 1 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
position = Vector2( -44, -21 )
scale = Vector2( -0.5, 0.5 )
frames = SubResource( 2 )
frame = 1
playing = true
[node name="Blindzone" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Blindzone"]
position = Vector2( 2, 5 )
shape = SubResource( 3 )
[node name="TweenSwim" type="Tween" parent="."]
[node name="Timer" type="Timer" parent="."]
autostart = true
[connection signal="area_entered" from="SwordPivot/SwordHitbox" to="." method="_on_SwordHitbox_area_entered"]
[connection signal="area_entered" from="Blindzone" to="." method="_on_Blindzone_area_entered"]
[connection signal="area_exited" from="Blindzone" to="." method="_on_Blindzone_area_exited"]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]