[gd_scene load_steps=9 format=2]

[ext_resource path="res://Fish/Fish.png" type="Texture" id=1]
[ext_resource path="res://Fish/Fish.gd" type="Script" id=2]
[ext_resource path="res://Fish/Fish2.png" type="Texture" id=3]
[ext_resource path="res://Fish/Thasadith-BoldItalic.ttf" type="DynamicFontData" id=4]

[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 1 ), ExtResource( 3 ) ],
"loop": true,
"name": "default",
"speed": 2.0
} ]

[sub_resource type="CapsuleShape2D" id=2]
radius = 17.0
height = 88.0

[sub_resource type="CapsuleShape2D" id=3]
radius = 21.0
height = 80.0

[sub_resource type="DynamicFont" id=4]
size = 24
outline_size = 1
outline_color = Color( 0, 0, 0, 1 )
use_filter = true
font_data = ExtResource( 4 )

[node name="Fish" type="KinematicBody2D"]
collision_layer = 2
collision_mask = 28
script = ExtResource( 2 )
swim_length = 200

[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
position = Vector2( -12, -17 )
scale = Vector2( -0.5, 0.5 )
frames = SubResource( 1 )
frame = 1
playing = true

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
position = Vector2( -18, 3 )
rotation = 1.5708
shape = SubResource( 2 )

[node name="Hitbox" type="Area2D" parent="." groups=["Fish"]]

[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
position = Vector2( -8, 1 )
rotation = 1.5708
shape = SubResource( 3 )

[node name="SwimTimer" type="Timer" parent="."]
autostart = true

[node name="TweenSwim" type="Tween" parent="."]

[node name="TweenHome" type="Tween" parent="."]

[node name="TweenInside" type="Tween" parent="."]

[node name="TweenSleep" type="Tween" parent="."]

[node name="Positions" type="Node2D" parent="."]

[node name="Mouth" type="Position2D" parent="Positions"]
position = Vector2( 56, 1 )

[node name="MouthInhale" type="Position2D" parent="Positions"]
position = Vector2( 85, 1 )

[node name="Tail" type="Position2D" parent="Positions"]
position = Vector2( -53, 0 )

[node name="HungerTimer" type="Timer" parent="."]
wait_time = 15.0
one_shot = true

[node name="ThoughtBubble" type="Sprite" parent="."]

[node name="Thought" type="RichTextLabel" parent="ThoughtBubble"]
margin_left = -137.0
margin_top = -200.0
margin_right = 138.0
margin_bottom = -80.0
custom_colors/default_color = Color( 0.945098, 0.352941, 0.160784, 1 )
custom_constants/line_separation = -6
custom_fonts/normal_font = SubResource( 4 )
bbcode_enabled = true
bbcode_text = "[center]Wait, something's wrong with these flakes! [shake]
Must... resist... eating...!"
text = "Wait, something's wrong with these flakes! 
Must... resist... eating...!"

[node name="ThoughtTimer" type="Timer" parent="ThoughtBubble"]
wait_time = 8.0
one_shot = true

[connection signal="timeout" from="SwimTimer" to="." method="_on_SwimTimer_timeout"]
[connection signal="timeout" from="HungerTimer" to="." method="_on_HungerTimer_timeout"]
[connection signal="timeout" from="ThoughtBubble/ThoughtTimer" to="." method="_on_ThoughtTimer_timeout"]
