67 lines
2.3 KiB
Plaintext
67 lines
2.3 KiB
Plaintext
[gd_scene load_steps=6 format=2]
|
|
|
|
[ext_resource path="res://Hazards/Squid/Squid2.png" type="Texture" id=1]
|
|
[ext_resource path="res://Hazards/Squid/Tentacle.png" type="Texture" id=2]
|
|
[ext_resource path="res://Hazards/Squid/Squid.gd" type="Script" id=3]
|
|
[ext_resource path="res://Tank/Water.png" type="Texture" id=4]
|
|
|
|
[sub_resource type="Animation" id=2]
|
|
resource_name = "Stab"
|
|
length = 0.3
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("Tentacle:position:x")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0, 0.3 ),
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
"update": 0,
|
|
"values": [ -900.0, 0.0 ]
|
|
}
|
|
|
|
[node name="Squid" type="Node2D"]
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="DELETEME" type="Sprite" parent="."]
|
|
texture = ExtResource( 4 )
|
|
centered = false
|
|
|
|
[node name="Tentacle" type="Sprite" parent="."]
|
|
position = Vector2( -900, 0 )
|
|
texture = ExtResource( 2 )
|
|
centered = false
|
|
|
|
[node name="Hitbox" type="Area2D" parent="Tentacle"]
|
|
visible = false
|
|
position = Vector2( 900, 0 )
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Tentacle/Hitbox"]
|
|
polygon = PoolVector2Array( 202, 11, 430, 2, 666, 10, 880, 40, 1008, 76, 1019, 100, 992, 121, 336, 163, 8, 200, 9, 34 )
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
texture = ExtResource( 1 )
|
|
centered = false
|
|
__meta__ = {
|
|
"_edit_lock_": true
|
|
}
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
anims/Stab = SubResource( 2 )
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 3.0
|
|
one_shot = true
|
|
|
|
[node name="Tween" type="Tween" parent="."]
|
|
|
|
[node name="Hitbox" type="Area2D" parent="."]
|
|
visible = false
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hitbox"]
|
|
polygon = PoolVector2Array( 131, 9, 234, 56, 364, 67, 413, 149, 592, 41, 699, 37, 779, 65, 835, 93, 863, 144, 701, 177, 731, 252, 746, 331, 731, 405, 684, 477, 801, 528, 846, 694, 917, 775, 979, 770, 1207, 512, 1280, 498, 1285, 518, 1191, 596, 1123, 773, 1079, 832, 1231, 815, 1355, 875, 1415, 973, 1407, 1022, 1321, 943, 1120, 926, 903, 961, 1031, 1045, 1052, 1078, -1, 1081, 4, 179, 70, 30 )
|
|
|
|
[connection signal="area_entered" from="Tentacle/Hitbox" to="." method="_on_Hitbox_area_entered"]
|
|
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|