[gd_scene load_steps=25 format=1]

[ext_resource path="res://grid.tscn" type="PackedScene" id=1]
[ext_resource path="res://textures/Light_2D.png" type="Texture" id=2]
[ext_resource path="res://sound/bg.wav" type="Sample" id=3]
[ext_resource path="res://sound/rotate.wav" type="Sample" id=4]
[ext_resource path="res://Fonts/NotoSans-Bold.fnt" type="BitmapFont" id=5]
[ext_resource path="res://sound/delete_line.wav" type="Sample" id=6]
[ext_resource path="res://sound/hit.wav" type="Sample" id=7]
[ext_resource path="res://textures/UI/return.png" type="Texture" id=8]
[ext_resource path="res://textures/UI/return_H.png" type="Texture" id=9]
[ext_resource path="res://sound/clear.wav" type="Sample" id=10]
[ext_resource path="res://textures/UI/pause.png" type="Texture" id=11]
[ext_resource path="res://textures/UI/pause_H.png" type="Texture" id=12]
[ext_resource path="res://scripts/Timer_Game.gd" type="Script" id=13]
[ext_resource path="res://textures/UI/musicOn.png" type="Texture" id=14]
[ext_resource path="res://textures/UI/musicOn_H.png" type="Texture" id=15]
[ext_resource path="res://sound/speed_up.wav" type="Sample" id=16]

[sub_resource type="CanvasItemMaterial" id=1]

shader/shading_mode = 0

[sub_resource type="SampleLibrary" id=2]

samples/bg = {
"db": 0.0,
"pitch": 1.0,
"priority": 0,
"sample": ExtResource( 3 )
}

[sub_resource type="SampleLibrary" id=3]

samples/rotate = {
"db": 0.0,
"pitch": 1.0,
"priority": 0,
"sample": ExtResource( 4 )
}

[sub_resource type="SampleLibrary" id=4]

samples/delete_line = {
"db": 0.0,
"pitch": 1.0,
"priority": 0,
"sample": ExtResource( 6 )
}

[sub_resource type="SampleLibrary" id=5]

samples/hit = {
"db": 0.0,
"pitch": 1.0,
"priority": 0,
"sample": ExtResource( 7 )
}

[sub_resource type="SampleLibrary" id=6]

samples/clear = {
"db": 0.0,
"pitch": 1.0,
"priority": 0,
"sample": ExtResource( 10 )
}

[sub_resource type="CanvasItemMaterial" id=7]

shader/shading_mode = 0

[sub_resource type="SampleLibrary" id=8]

samples/speed_up = {
"db": 0.0,
"pitch": 1.0,
"priority": 0,
"sample": ExtResource( 16 )
}

[node name="Tetris" type="Panel"]

anchor/right = 1
anchor/bottom = 1
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 0.0
margin/right = 0.0
margin/bottom = 0.0

[node name="Grid" parent="." instance=ExtResource( 1 )]

editor/display_folded = true
visibility/opacity = 0.99
material/material = SubResource( 1 )
anchor/left = 0
anchor/top = 3
anchor/bottom = 3
margin/left = 244.0
margin/top = 158.0
margin/right = -166.0
margin/bottom = -236.0

[node name="Light2D" type="Light2D" parent="Grid"]

transform/pos = Vector2( 108.245, 130.518 )
transform/scale = Vector2( 14.5306, 17.202 )
enabled = true
editor_only = false
texture = ExtResource( 2 )
offset = Vector2( 0, 0 )
scale = 1.0
color = Color( 0.0259857, 0.340953, 0.511719, 1 )
energy = 0.4
mode = 0
range/height = 0.0
range/z_min = -1024
range/z_max = 1024
range/layer_min = 0
range/layer_max = 0
range/item_mask = 1
shadow/enabled = true
shadow/color = Color( 0.0384521, 0.220599, 0.234375, 0 )
shadow/buffer_size = 2048
shadow/esm_multiplier = 80.0
shadow/item_mask = 1

[node name="sfx_bg" type="SamplePlayer" parent="Grid"]

config/polyphony = 3
config/samples = SubResource( 2 )
default/volume_db = 5.0
default/pitch_scale = 1.5
default/pan = 0.0
default/depth = 0.0
default/height = 0.0
default/filter/type = 0
default/filter/cutoff = 5000.0
default/filter/resonance = 1.0
default/filter/gain = 1.0
default/reverb_room = 2
default/reverb_send = 0.0
default/chorus_send = 0.0

[node name="sfx_rot" type="SamplePlayer" parent="Grid"]

config/polyphony = 2
config/samples = SubResource( 3 )
default/volume_db = 2.0
default/pitch_scale = 0.5
default/pan = 0.01
default/depth = 0.0
default/height = 0.0
default/filter/type = 0
default/filter/cutoff = 5000.0
default/filter/resonance = 1.0
default/filter/gain = 1.0
default/reverb_room = 2
default/reverb_send = 0.0
default/chorus_send = 0.0

[node name="Hit" type="Label" parent="."]

editor/display_folded = true
rect/scale = Vector2( 1, 1.5 )
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 70.0
margin/top = 489.0
margin/right = 164.0
margin/bottom = 503.0
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color = Color( 0.949219, 0.849859, 0.0407867, 1 )
custom_colors/font_color_shadow = Color( 0.75, 0.392578, 0.392578, 1 )
text = "SET_GUI_L_HITS"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="sfx3" type="SamplePlayer" parent="Hit"]

config/polyphony = 1
config/samples = SubResource( 4 )
default/volume_db = 0.0
default/pitch_scale = 1.0
default/pan = 0.0
default/depth = 0.0
default/height = 0.0
default/filter/type = 0
default/filter/cutoff = 5000.0
default/filter/resonance = 1.0
default/filter/gain = 1.0
default/reverb_room = 2
default/reverb_send = 0.0
default/chorus_send = 0.0

[node name="score" type="Label" parent="."]

editor/display_folded = true
rect/scale = Vector2( 1, 1.2 )
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 155.0
margin/top = 492.0
margin/right = 196.0
margin/bottom = 505.0
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color_shadow = Color( 0.517647, 0.886275, 0.972549, 1 )
text = "0"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="sfx2" type="SamplePlayer" parent="score"]

config/polyphony = 1
config/samples = SubResource( 5 )
default/volume_db = 0.0
default/pitch_scale = 1.0
default/pan = 0.0
default/depth = 0.0
default/height = 0.0
default/filter/type = 0
default/filter/cutoff = 5000.0
default/filter/resonance = 1.0
default/filter/gain = 1.0
default/reverb_room = 2
default/reverb_send = 0.0
default/chorus_send = 0.0

[node name="score1" type="Label" parent="."]

rect/scale = Vector2( 1, 1.2 )
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 155.0
margin/top = 472.0
margin/right = 196.0
margin/bottom = 486.0
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color_shadow = Color( 0.517647, 0.886275, 0.972549, 1 )
text = "0"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="score2" type="Label" parent="."]

rect/scale = Vector2( 1, 1.2 )
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 155.0
margin/top = 450.0
margin/right = 196.0
margin/bottom = 464.0
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color_shadow = Color( 0.517647, 0.886275, 0.972549, 1 )
text = "0"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="score3" type="Label" parent="."]

rect/scale = Vector2( 1, 1.2 )
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 155.0
margin/top = 512.0
margin/right = 196.0
margin/bottom = 526.0
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color_shadow = Color( 0.517647, 0.886275, 0.972549, 1 )
text = "1"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="score4" type="Label" parent="."]

rect/scale = Vector2( 1, 1.2 )
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 155.0
margin/top = 531.0
margin/right = 208.0
margin/bottom = 545.0
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color_shadow = Color( 0.517647, 0.886275, 0.972549, 1 )
text = "1.000000"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="restart" type="TextureButton" parent="."]

editor/display_folded = true
visibility/self_opacity = 0.8
hint/tooltip = "Restart"
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 711.0
margin/top = 485.0
margin/right = 766.0
margin/bottom = 540.0
toggle_mode = false
click_on_press = true
enabled_focus_mode = 2
shortcut = null
textures/normal = ExtResource( 8 )
textures/hover = ExtResource( 9 )
params/resize_mode = 0
params/stretch_mode = 0
params/modulate = Color( 0.531006, 0.655294, 0.679688, 1 )

[node name="sfx4" type="SamplePlayer" parent="restart"]

config/polyphony = 1
config/samples = SubResource( 6 )
default/volume_db = 10.0
default/pitch_scale = 1.0
default/pan = 0.0
default/depth = 0.0
default/height = 0.0
default/filter/type = 0
default/filter/cutoff = 5000.0
default/filter/resonance = 1.0
default/filter/gain = 1.0
default/reverb_room = 2
default/reverb_send = 0.0
default/chorus_send = 0.0

[node name="Best_Hit" type="Label" parent="."]

rect/scale = Vector2( 1, 1.5 )
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 70.0
margin/top = 469.0
margin/right = 165.0
margin/bottom = 483.0
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color = Color( 0.0935669, 0.855469, 0.105472, 1 )
custom_colors/font_color_shadow = Color( 0.738281, 0.507568, 0.507568, 1 )
text = "SET_GUI_B_HITS"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="Pause" type="TextureButton" parent="."]

visibility/self_opacity = 0.8
material/material = SubResource( 7 )
hint/tooltip = "Pause"
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 655.0
margin/top = 486.0
margin/right = 710.0
margin/bottom = 541.0
toggle_mode = false
click_on_press = true
enabled_focus_mode = 2
shortcut = null
textures/normal = ExtResource( 11 )
textures/hover = ExtResource( 12 )
params/resize_mode = 0
params/stretch_mode = 0
params/modulate = Color( 0.653076, 0.750221, 0.835938, 1 )

[node name="Total" type="Label" parent="."]

rect/scale = Vector2( 1, 1.5 )
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 70.0
margin/top = 448.0
margin/right = 174.0
margin/bottom = 462.0
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color = Color( 0.996094, 0.202332, 0.202332, 1 )
custom_colors/font_color_shadow = Color( 0.90625, 0.577275, 0.258423, 1 )
text = "SET_GUI_S_TOTAL"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="Add_Time" type="Label" parent="."]

process/pause_mode = 2
rect/scale = Vector2( 1, 1.2 )
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 155.0
margin/top = 433.0
margin/right = 239.0
margin/bottom = 447.0
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color = Color( 0.964844, 0.881927, 0.881927, 1 )
custom_colors/font_color_shadow = Color( 0.517647, 0.886275, 0.972549, 1 )
text = "00:00"
valign = 1
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
script/script = ExtResource( 13 )

[node name="Add_Time_Text" type="Label" parent="."]

rect/scale = Vector2( 1, 1.5 )
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 70.0
margin/top = 430.0
margin/right = 163.0
margin/bottom = 444.0
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color = Color( 0.567627, 0.371094, 1, 1 )
custom_colors/font_color_shadow = Color( 0.402344, 0.213745, 0.213745, 1 )
text = "SET_GUI_TIMER"
valign = 1
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="Sound" type="TextureButton" parent="."]

visibility/self_opacity = 0.8
hint/tooltip = "Sound"
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 599.0
margin/top = 486.0
margin/right = 654.0
margin/bottom = 541.0
toggle_mode = false
click_on_press = true
enabled_focus_mode = 2
shortcut = null
textures/normal = ExtResource( 14 )
textures/hover = ExtResource( 15 )
params/resize_mode = 0
params/stretch_mode = 0
params/modulate = Color( 0.504196, 0.644043, 0.746094, 1 )

[node name="Session" type="Label" parent="."]

rect/scale = Vector2( 1, 1.5 )
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 70.0
margin/top = 509.0
margin/right = 123.0
margin/bottom = 523.0
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color = Color( 0.0836334, 0.738281, 0.630878, 1 )
custom_colors/font_color_shadow = Color( 0.346892, 0.347656, 0.323212, 1 )
text = "SET_GUI_L_SESSION"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="Monitor_Speed" type="Label" parent="."]

editor/display_folded = true
rect/scale = Vector2( 1, 1.5 )
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 70.0
margin/top = 529.0
margin/right = 113.0
margin/bottom = 543.0
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color = Color( 0.695455, 0.0969849, 0.886719, 1 )
custom_colors/font_color_shadow = Color( 0.253547, 0.226929, 0.40625, 1 )
text = "SET_GUI_L_SPEED"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="Speed_UP1" type="SamplePlayer" parent="Monitor_Speed"]

config/polyphony = 1
config/samples = SubResource( 8 )
default/volume_db = 1.56
default/pitch_scale = 0.99
default/pan = 0.0
default/depth = 1.0
default/height = 0.0
default/filter/type = 0
default/filter/cutoff = 5000.0
default/filter/resonance = 1.0
default/filter/gain = 1.0
default/reverb_room = 2
default/reverb_send = 0.0
default/chorus_send = 0.0

[connection signal="pressed" from="restart" to="Grid" method="restart_pressed"]

[connection signal="enter_tree" from="Pause" to="Grid" method="_on_pause_popup_close_pressed"]

[connection signal="pressed" from="Pause" to="Grid" method="_on_pause_button_pressed"]

[connection signal="pressed" from="Sound" to="Grid" method="_on_pause_sfx"]


