38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://Hazards/Angler/Angler.gd" type="Script" id=1]
|
|
[ext_resource path="res://Hazards/Angler/Angler.png" type="Texture" id=2]
|
|
|
|
[sub_resource type="CapsuleShape2D" id=1]
|
|
radius = 25.0
|
|
height = 108.0
|
|
|
|
[node name="Angler" type="Node2D"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
position = Vector2( 16, -16 )
|
|
scale = Vector2( 0.5, 0.5 )
|
|
texture = ExtResource( 2 )
|
|
|
|
[node name="Tween" type="Tween" parent="."]
|
|
|
|
[node name="ChargeTimer" type="Timer" parent="."]
|
|
wait_time = 4.0
|
|
|
|
[node name="Hitbox" type="Area2D" parent="."]
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hitbox"]
|
|
polygon = PoolVector2Array( -75, -15, -33, -47, -7, -55, 22, -54, 79, -32, 107, -14, 123, -31, 136, -34, 145, -31, 133, -25, 130, -15, 141, -4, 128, -2, 137, 15, 121, 9, 109, -2, 21, 48, -16, 53, -43, 47, -64, 32, -76, 9 )
|
|
|
|
[node name="Hurtbox" type="Area2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hurtbox"]
|
|
position = Vector2( 10, -3 )
|
|
rotation = 1.5708
|
|
shape = SubResource( 1 )
|
|
|
|
[connection signal="timeout" from="ChargeTimer" to="." method="_on_ChargeTimer_timeout"]
|
|
[connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"]
|
|
[connection signal="area_entered" from="Hurtbox" to="." method="_on_Hurtbox_area_entered"]
|