[gd_scene load_steps=17 format=2]

[ext_resource path="res://bacteria.gd" type="Script" id=1]
[ext_resource path="res://sprite/Besourinho.png" type="Texture" id=2]
[ext_resource path="res://Health.tscn" type="PackedScene" id=3]
[ext_resource path="res://hitbox.tscn" type="PackedScene" id=4]
[ext_resource path="res://particles.tscn" type="PackedScene" id=5]
[ext_resource path="res://newdynamicfont.tres" type="DynamicFont" id=6]
[ext_resource path="res://ui/interfaceBevel.png" type="Texture" id=7]

[sub_resource type="RectangleShape2D" id=1]

[sub_resource type="StyleBoxFlat" id=4]
bg_color = Color( 0.0705882, 0.262745, 0.329412, 1 )

[sub_resource type="StyleBoxFlat" id=5]
bg_color = Color( 0.0156863, 0.709804, 0.0196078, 1 )

[sub_resource type="Theme" id=6]
ProgressBar/colors/font_color = Color( 0, 0, 0, 1 )
ProgressBar/colors/font_color_shadow = Color( 0, 0, 0, 1 )
ProgressBar/fonts/font = null
ProgressBar/styles/bg = SubResource( 4 )
ProgressBar/styles/fg = SubResource( 5 )

[sub_resource type="StyleBoxFlat" id=7]
bg_color = Color( 0.270588, 0, 0, 1 )

[sub_resource type="StyleBoxFlat" id=8]
bg_color = Color( 1, 0, 0, 1 )

[sub_resource type="Theme" id=9]
ProgressBar/colors/font_color = Color( 0, 0, 0, 1 )
ProgressBar/colors/font_color_shadow = Color( 0, 0, 0, 1 )
ProgressBar/fonts/font = null
ProgressBar/styles/bg = SubResource( 7 )
ProgressBar/styles/fg = SubResource( 8 )

[sub_resource type="Animation" id=2]
resource_name = "Nova Animação"
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Icon/l/menbros0:rotation_degrees")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( -0.00999999, 0.5, 0.99 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ 70.0, 110.0, 70.0 ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Icon/l/menbros1:rotation_degrees")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( -0.00999999, 0.5, 1 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ 70.0, 110.0, 70.0 ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("Icon/r/menbros0:rotation_degrees")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0, 0.5, 1 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ 110.0, 70.0, 110.0 ]
}
tracks/3/type = "value"
tracks/3/path = NodePath("Icon/l/menbros2:rotation_degrees")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/keys = {
"times": PoolRealArray( 0, 0.5, 1 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ 110.0, 70.0, 110.0 ]
}
tracks/4/type = "value"
tracks/4/path = NodePath("Icon/r/menbros1:rotation_degrees")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/keys = {
"times": PoolRealArray( 0, 0.5, 1 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ 110.0, 70.0, 110.0 ]
}
tracks/5/type = "value"
tracks/5/path = NodePath("Icon/r/menbros2:rotation_degrees")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/keys = {
"times": PoolRealArray( -0.00999999, 0.5, 1 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ 70.0, 110.0, 70.0 ]
}
tracks/6/type = "value"
tracks/6/path = NodePath("Icon:scale")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/keys = {
"times": PoolRealArray( 0, 0.3, 0.7, 1 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 0,
"values": [ Vector2( 1, 1 ), Vector2( 0.9, 1.1 ), Vector2( 1.05, 0.95 ), Vector2( 1, 1 ) ]
}

[sub_resource type="Animation" id=3]
length = 0.001
tracks/0/type = "value"
tracks/0/path = NodePath("Icon/l/menbros0:rotation_degrees")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ 90.0 ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Icon/l/menbros1:rotation_degrees")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ 90.0 ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("Icon/r/menbros0:rotation_degrees")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ 90.0 ]
}
tracks/3/type = "value"
tracks/3/path = NodePath("Icon/l/menbros2:rotation_degrees")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ 90.0 ]
}
tracks/4/type = "value"
tracks/4/path = NodePath("Icon/r/menbros1:rotation_degrees")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ 90.0 ]
}
tracks/5/type = "value"
tracks/5/path = NodePath("Icon/r/menbros2:rotation_degrees")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ 90.0 ]
}
tracks/6/type = "value"
tracks/6/path = NodePath("Icon:scale")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Vector2( 1, 1 ) ]
}

[node name="bacteria" type="KinematicBody2D" groups=["player"]]
script = ExtResource( 1 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )

[node name="Camera2D" type="Camera2D" parent="."]
current = true

[node name="hitbox" parent="." instance=ExtResource( 4 )]
dmg = 10

[node name="Icon" type="Sprite" parent="."]
texture = ExtResource( 2 )

[node name="particles" parent="Icon" instance=ExtResource( 5 )]
rotation = 1.5708

[node name="l" type="Node2D" parent="Icon"]
z_index = -1

[node name="menbros0" type="Position2D" parent="Icon/l"]
position = Vector2( -27, -20 )
rotation = 1.5708

[node name="menbros1" type="Position2D" parent="Icon/l"]
position = Vector2( 8, -16 )
rotation = 1.5708

[node name="menbros2" type="Position2D" parent="Icon/l"]
position = Vector2( -9, -20 )
rotation = 1.5708

[node name="r" type="Node2D" parent="Icon"]
scale = Vector2( 1, -1 )
z_index = -1

[node name="menbros0" type="Position2D" parent="Icon/r"]
position = Vector2( -27, -20 )
rotation = 1.5708

[node name="menbros1" type="Position2D" parent="Icon/r"]
position = Vector2( 8, -16 )
rotation = 1.5708

[node name="menbros2" type="Position2D" parent="Icon/r"]
position = Vector2( -9, -20 )
rotation = 1.5708

[node name="Health" parent="." instance=ExtResource( 3 )]
health_max = 50
progressbar = NodePath("../CanvasLayer/ProgressBar3")
text = NodePath("../CanvasLayer/VBoxContainer/Label2")

[node name="CanvasLayer" type="CanvasLayer" parent="."]

[node name="ProgressBar2" type="ProgressBar" parent="CanvasLayer"]
show_behind_parent = true
margin_left = 19.0
margin_top = 18.0
margin_right = 520.0
margin_bottom = 40.0
theme = SubResource( 6 )
custom_fonts/font = ExtResource( 6 )
max_value = 0.1
percent_visible = false

[node name="ProgressBar3" type="ProgressBar" parent="CanvasLayer"]
show_behind_parent = true
margin_left = 38.0
margin_top = 38.0
margin_right = 502.0
margin_bottom = 55.0
theme = SubResource( 9 )
custom_fonts/font = ExtResource( 6 )
max_value = 50.0
value = 20.0
percent_visible = false

[node name="InterfaceBevel" type="Sprite" parent="CanvasLayer"]
scale = Vector2( 0.75, 0.75 )
texture = ExtResource( 7 )
centered = false

[node name="VBoxContainer" type="Control" parent="CanvasLayer"]
anchor_right = 1.0
anchor_bottom = 1.0

[node name="Label" type="Label" parent="CanvasLayer/VBoxContainer"]
margin_top = 22.0
margin_right = 540.0
margin_bottom = 41.0
custom_fonts/font = ExtResource( 6 )
text = "0"
align = 1

[node name="Label2" type="Label" parent="CanvasLayer/VBoxContainer"]
margin_top = 38.0
margin_right = 540.0
margin_bottom = 57.0
custom_fonts/font = ExtResource( 6 )
text = "999"
align = 1

[node name="Label3" type="Label" parent="CanvasLayer/VBoxContainer"]
margin_top = 6.0
margin_right = 540.0
margin_bottom = 25.0
custom_fonts/font = ExtResource( 6 )
text = "Lv.1"
align = 1

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "Nova Animação"
playback_speed = 1.5
"anims/Nova Animação" = SubResource( 2 )
anims/RESET = SubResource( 3 )

[connection signal="gotxp" from="hitbox" to="." method="_on_hitbox_gotxp"]
[connection signal="regenhealth" from="hitbox" to="Health" method="_damage"]
[connection signal="die" from="Health" to="." method="_on_Health_die"]
