[gd_scene load_steps=35 format=1]

[ext_resource path="res://Scenes/Menu/level_selector.gd" type="Script" id=1]
[ext_resource path="res://Scenes/Maps/map_0.tscn" type="PackedScene" id=2]
[ext_resource path="res://Scenes/Maps/map_3.tscn" type="PackedScene" id=3]
[ext_resource path="res://Scenes/Maps/map_1.tscn" type="PackedScene" id=4]
[ext_resource path="res://Scenes/Maps/map_2.tscn" type="PackedScene" id=5]
[ext_resource path="res://Scenes/Maps/map_4.tscn" type="PackedScene" id=6]
[ext_resource path="res://Scenes/Maps/map_5.tscn" type="PackedScene" id=7]
[ext_resource path="res://Scenes/Maps/map_6.tscn" type="PackedScene" id=8]
[ext_resource path="res://Scenes/Maps/map_7.tscn" type="PackedScene" id=9]
[ext_resource path="res://Scenes/Maps/map_8.tscn" type="PackedScene" id=10]
[ext_resource path="res://Scenes/Menu/life_hud.gd" type="Script" id=11]
[ext_resource path="res://Scenes/Menu/buttons_hud.gd" type="Script" id=12]
[ext_resource path="res://Sprites/GUI/Buttons/bttn_arrow.png" type="Texture" id=13]
[ext_resource path="res://Sprites/GUI/Buttons/bttn_jump.png" type="Texture" id=14]
[ext_resource path="res://Sprites/GUI/Buttons/bttn.png" type="Texture" id=15]
[ext_resource path="res://Sprites/GUI/Buttons/btn_shoot.png" type="Texture" id=16]
[ext_resource path="res://Scenes/Menu/milk_botte_hud.gd" type="Script" id=17]
[ext_resource path="res://Sprites/GUI/HUD/milbar_outter_2.png" type="Texture" id=18]
[ext_resource path="res://Sprites/GUI/HUD/milkbar_outter_3.png" type="Texture" id=19]
[ext_resource path="res://Sprites/GUI/HUD/milkbar_outter_1.png" type="Texture" id=20]
[ext_resource path="res://Scenes/Menu/cowbells_hud.gd" type="Script" id=21]
[ext_resource path="res://Fonts/pixelated_title.fnt" type="BitmapFont" id=22]
[ext_resource path="res://Sprites/Charasets/cowbell.png" type="Texture" id=23]
[ext_resource path="res://Scenes/Events/cowbell_animation_one_shot.tres" type="Animation" id=24]
[ext_resource path="res://Scenes/Events/cowbell_animations.tres" type="Animation" id=25]
[ext_resource path="res://Scenes/Menu/button_back.tscn" type="PackedScene" id=26]
[ext_resource path="res://Scenes/Menu/in_game_menu.tscn" type="PackedScene" id=27]
[ext_resource path="res://Scenes/Menu/ufo_store.tscn" type="PackedScene" id=28]
[ext_resource path="res://Scenes/Effects/scan_lines.tscn" type="PackedScene" id=29]

[sub_resource type="Environment" id=1]

ambient_light/enabled = false
ambient_light/color = Color( 0, 0, 0, 1 )
ambient_light/energy = 1.0
fxaa/enabled = false
background/mode = 1
background/color = Color( 0, 0, 0, 1 )
background/energy = 1.0
background/scale = 1.0
background/glow = 0.0
background/canvas_max_layer = null
glow/enabled = true
glow/blur_passes = 1
glow/blur_scale = 1
glow/blur_strength = 1
glow/blur_blend_mode = null
glow/bloom = 5.52
glow/bloom_treshold = 0.5
dof_blur/enabled = false
dof_blur/blur_passes = 1
dof_blur/begin = 100.0
dof_blur/range = 10.0
hdr/enabled = false
hdr/tonemapper = 2.0
hdr/exposure = 0.4
hdr/white = 1.0
hdr/glow_treshold = 0.95
hdr/glow_scale = 0.2
hdr/min_luminance = 0.4
hdr/max_luminance = 8.0
hdr/exposure_adj_speed = 0.5
fog/enabled = false
fog/begin = 100.0
fog/begin_color = Color( 0, 0, 0, 1 )
fog/end_color = Color( 0, 0, 0, 1 )
fog/attenuation = 1.0
fog/bg = true
bcs/enabled = false
bcs/brightness = 1.0
bcs/contrast = 1.0
bcs/saturation = 1.0
srgb/enabled = false

[sub_resource type="World" id=2]

environment = SubResource( 1 )

[sub_resource type="CanvasItemMaterial" id=3]

shader/shading_mode = 0

[sub_resource type="GDScript" id=4]

script/source = "extends Button

func _on_Back_pressed():
	get_tree().set_pause(true)
	get_node(\"in_game_menu\").show()
"

[sub_resource type="GDScript" id=5]

script/source = "extends TextureFrame

# class member variables go here, for example:
# var a = 2
# var b = \"textvar\"

func _ready():
	set_hidden(global.retro_effect)
"

[node name="Global" type="Node2D" groups=[
"control",
]]

[node name="Control" type="Control" parent="." groups=[
"level_selector",
]]

focus/ignore_mouse = false
focus/stop_mouse = false
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 0.0
margin/right = 1280.0
margin/bottom = 768.0
script/script = ExtResource( 1 )
levels = [ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 10 ) ]

[node name="Viewport" type="Viewport" parent="Control"]

rect = Rect2( 0, 0, 1280, 768 )
own_world = false
world = SubResource( 2 )
transparent_bg = false
render_target/enabled = false
render_target/v_flip = false
render_target/clear_on_new_frame = false
render_target/filter = false
render_target/gen_mipmaps = false
render_target/update_mode = 3
audio_listener/enable_2d = true
audio_listener/enable_3d = false
physics/object_picking = false
gui/disable_input = false

[node name="Life" type="Node2D" parent="Control" groups=[
"life_hud",
]]

transform/pos = Vector2( 120, 58 )
script/script = ExtResource( 11 )
heart_inter_distance = 64
initial_heart_pos = Vector2( 32, 0 )

[node name="Buttons" type="Node2D" parent="Control" groups=[
"onscreen_controls",
"buttons_hud",
]]

editor/display_folded = true
script/script = ExtResource( 12 )

[node name="Bttn_U" type="TouchScreenButton" parent="Control/Buttons" groups=[
"onscreen_controls",
]]

visibility/opacity = 0.9
transform/pos = Vector2( 160, 320 )
transform/scale = Vector2( 0.474074, 0.481203 )
normal = ExtResource( 13 )
pressed = null
bitmask = null
shape = null
shape_centered = true
shape_visible = true
passby_press = true
action = ""
visibility_mode = 0

[node name="Bttn_A" type="TouchScreenButton" parent="Control/Buttons" groups=[
"onscreen_controls",
]]

visibility/opacity = 0.8
transform/pos = Vector2( 1088, 576 )
transform/scale = Vector2( 0.474074, 0.481203 )
normal = ExtResource( 14 )
pressed = null
bitmask = null
shape = null
shape_centered = true
shape_visible = true
passby_press = true
action = ""
visibility_mode = 0

[node name="Bttn_AS" type="TouchScreenButton" parent="Control/Buttons" groups=[
"onscreen_controls",
]]

visibility/opacity = 0.8
transform/pos = Vector2( 1088, 384 )
transform/scale = Vector2( 0.474074, 0.481203 )
normal = ExtResource( 15 )
pressed = null
bitmask = null
shape = null
shape_centered = true
shape_visible = true
passby_press = true
action = ""
visibility_mode = 0

[node name="Bttn_S" type="TouchScreenButton" parent="Control/Buttons" groups=[
"onscreen_controls",
]]

visibility/opacity = 0.9
transform/pos = Vector2( 896, 576 )
transform/scale = Vector2( 0.474074, 0.481203 )
normal = ExtResource( 16 )
pressed = null
bitmask = null
shape = null
shape_centered = true
shape_visible = true
passby_press = true
action = ""
visibility_mode = 0

[node name="Bttn_D" type="TouchScreenButton" parent="Control/Buttons" groups=[
"onscreen_controls",
]]

visibility/opacity = 0.9
transform/pos = Vector2( 288, 704 )
transform/rot = 180.0
transform/scale = Vector2( 0.474074, 0.481203 )
normal = ExtResource( 13 )
pressed = null
bitmask = null
shape = null
shape_centered = true
shape_visible = true
passby_press = true
action = ""
visibility_mode = 0

[node name="Bttn_R" type="TouchScreenButton" parent="Control/Buttons" groups=[
"onscreen_controls",
]]

visibility/opacity = 0.9
transform/pos = Vector2( 416, 448 )
transform/rot = -90.0
transform/scale = Vector2( 0.474074, 0.481203 )
normal = ExtResource( 13 )
pressed = null
bitmask = null
shape = null
shape_centered = true
shape_visible = true
passby_press = true
action = ""
visibility_mode = 0

[node name="Bttn_L" type="TouchScreenButton" parent="Control/Buttons" groups=[
"onscreen_controls",
]]

visibility/opacity = 0.9
transform/pos = Vector2( 32, 576 )
transform/rot = 90.0
transform/scale = Vector2( 0.474074, 0.481203 )
normal = ExtResource( 13 )
pressed = null
bitmask = null
shape = null
shape_centered = true
shape_visible = true
passby_press = true
action = ""
visibility_mode = 0

[node name="Milk_Bar" type="Node2D" parent="Control" groups=[
"milk_hud",
]]

transform/pos = Vector2( 1205, 73 )
transform/scale = Vector2( 2, 2 )
script/script = ExtResource( 17 )
each_bottle_value = 33.0
bottle_inter_distance = 32
initial_bottle_pos = Vector2( -10, -20 )
sprite1 = ExtResource( 18 )
sprite2 = ExtResource( 19 )
sprite3 = ExtResource( 20 )

[node name="Cowbells" type="Node2D" parent="Control" groups=[
"cowbell_hud",
]]

editor/display_folded = true
transform/pos = Vector2( 3, 21 )
script/script = ExtResource( 21 )

[node name="Counter" type="RichTextLabel" parent="Control/Cowbells"]

focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 630.0
margin/top = 30.0
margin/right = 876.0
margin/bottom = 81.0
custom_fonts/normal_font = ExtResource( 22 )
bbcode/enabled = true
bbcode/bbcode = "0"
visible_characters = -1
percent_visible = 1.0

[node name="bonus_instancer" type="Node2D" parent="Control/Cowbells"]

transform/pos = Vector2( 642, 43 )

[node name="next_cowbell_timer" type="Timer" parent="Control/Cowbells"]

process_mode = 1
wait_time = 0.6
one_shot = true
autostart = false

[node name="cold_down_timer" type="Timer" parent="Control/Cowbells"]

process_mode = 1
wait_time = 0.005
one_shot = false
autostart = false

[node name="Sprite" type="Sprite" parent="Control/Cowbells"]

material/material = SubResource( 3 )
transform/pos = Vector2( 586, 45 )
transform/scale = Vector2( 3, 3 )
texture = ExtResource( 23 )
hframes = 3

[node name="Animation" type="AnimationPlayer" parent="Control/Cowbells/Sprite"]

playback/process_mode = 0
playback/default_blend_time = 0.0
root/root = NodePath("..")
anims/cowbell_animation_one_shot = ExtResource( 24 )
anims/cowbell_animations = ExtResource( 25 )
playback/active = false
playback/speed = 2.0
blend_times = [  ]
autoplay = ""

[node name="Back" parent="Control" instance=ExtResource( 26 )]

margin/left = 36.0
margin/top = 34.0
margin/right = 97.0
margin/bottom = 89.0
text = "<"
script/script = SubResource( 4 )

[node name="in_game_menu" parent="Control/Back" instance=ExtResource( 27 )]

visibility/visible = false
margin/left = -36.0
margin/top = -34.0
margin/right = 1244.0
margin/bottom = 686.0

[node name="Control" parent="Control" instance=ExtResource( 28 )]

[node name="ScanLine" parent="." instance=ExtResource( 29 )]

script/script = SubResource( 5 )

[connection signal="pressed" from="Control/Buttons/Bttn_U" to="Control/Buttons" method="_on_Bttn_U_pressed"]

[connection signal="released" from="Control/Buttons/Bttn_U" to="Control/Buttons" method="_on_Bttn_U_released"]

[connection signal="pressed" from="Control/Buttons/Bttn_A" to="Control/Buttons" method="_on_Bttn_A_pressed"]

[connection signal="released" from="Control/Buttons/Bttn_A" to="Control/Buttons" method="_on_Bttn_A_released"]

[connection signal="pressed" from="Control/Buttons/Bttn_AS" to="Control/Buttons" method="_on_Bttn_AS_pressed"]

[connection signal="released" from="Control/Buttons/Bttn_AS" to="Control/Buttons" method="_on_Bttn_AS_released"]

[connection signal="pressed" from="Control/Buttons/Bttn_S" to="Control/Buttons" method="_on_Bttn_S_pressed"]

[connection signal="released" from="Control/Buttons/Bttn_S" to="Control/Buttons" method="_on_Bttn_S_released"]

[connection signal="pressed" from="Control/Buttons/Bttn_D" to="Control/Buttons" method="_on_Bttn_D_pressed"]

[connection signal="released" from="Control/Buttons/Bttn_D" to="Control/Buttons" method="_on_Bttn_D_released"]

[connection signal="pressed" from="Control/Buttons/Bttn_R" to="Control/Buttons" method="_on_Bttn_R_pressed"]

[connection signal="released" from="Control/Buttons/Bttn_R" to="Control/Buttons" method="_on_Bttn_R_released"]

[connection signal="pressed" from="Control/Buttons/Bttn_L" to="Control/Buttons" method="_on_Bttn_L_pressed"]

[connection signal="released" from="Control/Buttons/Bttn_L" to="Control/Buttons" method="_on_Bttn_L_released"]

[connection signal="timeout" from="Control/Cowbells/next_cowbell_timer" to="Control/Cowbells" method="_on_next_cowbell_timer_timeout"]

[connection signal="timeout" from="Control/Cowbells/cold_down_timer" to="Control/Cowbells" method="_on_cold_down_timer_timeout"]

[connection signal="pressed" from="Control/Back" to="Control/Back" method="_on_Back_pressed"]


