[gd_scene load_steps=21 format=3 uid="uid://dwl4lotl1d3ij"] [ext_resource type="Script" path="res://scenes/Grid/grid.gd" id="1_vie5m"] [ext_resource type="Texture2D" uid="uid://cj6fsj1ac11a1" path="res://assets/background.png" id="2_vakrw"] [ext_resource type="PackedScene" uid="uid://bm7rshwf6pjb" path="res://scenes/Grid/border.tscn" id="4_3j08q"] [ext_resource type="PackedScene" uid="uid://duubii5uu3lgq" path="res://scenes/Grid/row_test.tscn" id="4_si3v6"] [ext_resource type="PackedScene" uid="uid://dvrotjxom4u6d" path="res://scenes/Grid/bottom.tscn" id="5_14njh"] [ext_resource type="PackedScene" uid="uid://d2m5xvw4ucwfw" path="res://scenes/Grid/lose_area.tscn" id="5_u5wlg"] [ext_resource type="Script" path="res://scenes/Grid/camera_2d.gd" id="6_mbeib"] [ext_resource type="Theme" uid="uid://1nebbd65iyce" path="res://Theme/main.tres" id="7_38u5s"] [ext_resource type="Script" path="res://scenes/Main/control.gd" id="8_4bfjb"] [ext_resource type="LabelSettings" uid="uid://cd783ubpcytc8" path="res://Theme/label.tres" id="9_i2h5u"] [ext_resource type="Texture2D" uid="uid://bfji7a4suq6a1" path="res://assets/Buttons/LeftArrow.png" id="10_vgg21"] [ext_resource type="Texture2D" uid="uid://dsg7p035f3g52" path="res://assets/Buttons/RightArrow.png" id="11_pa3jp"] [ext_resource type="Texture2D" uid="uid://ct4dkk00pyv6v" path="res://assets/Buttons/RotationLeft.png" id="12_qk3ju"] [ext_resource type="Texture2D" uid="uid://5gbnb7gtwww3" path="res://assets/Buttons/RotationRight.png" id="13_kls78"] [ext_resource type="Texture2D" uid="uid://cevua7g7nsrfj" path="res://assets/Buttons/DownArrow.png" id="14_i1yud"] [ext_resource type="AudioStream" uid="uid://tf3d2uu84gf1" path="res://assets/Audio/Background.wav" id="16_ng6e7"] [sub_resource type="QuadMesh" id="QuadMesh_qfjsc"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_flipi"] size = Vector2(128, 1536) [sub_resource type="RectangleShape2D" id="RectangleShape2D_rxd0s"] size = Vector2(896, 128) [sub_resource type="RectangleShape2D" id="RectangleShape2D_m21a1"] size = Vector2(640, 256) [node name="Grid" type="Node2D"] script = ExtResource("1_vie5m") [node name="MeshInstance2D" type="MeshInstance2D" parent="."] modulate = Color(0.359096, 0.426588, 0.599397, 1) position = Vector2(320, 640) scale = Vector2(640, 1280) mesh = SubResource("QuadMesh_qfjsc") [node name="TextureRect" type="TextureRect" parent="."] offset_right = 640.0 offset_bottom = 1280.0 texture = ExtResource("2_vakrw") stretch_mode = 1 [node name="Blocks" type="Node2D" parent="."] [node name="Spawnpoint" type="Marker2D" parent="."] position = Vector2(256, -128) [node name="RowTests" type="Node2D" parent="."] [node name="rowTest" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 1248) [node name="rowTest2" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 1184) [node name="rowTest3" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 1120) [node name="rowTest4" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 1056) [node name="rowTest5" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 992) [node name="rowTest6" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 928) [node name="rowTest7" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 864) [node name="rowTest8" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 800) [node name="rowTest9" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 736) [node name="rowTest10" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 672) [node name="rowTest11" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 608) [node name="rowTest12" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 544) [node name="rowTest13" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 480) [node name="rowTest14" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 416) [node name="rowTest15" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 352) [node name="rowTest16" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 288) [node name="rowTest17" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 224) [node name="rowTest18" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 160) [node name="rowTest19" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 96) [node name="rowTest20" parent="RowTests" instance=ExtResource("4_si3v6")] position = Vector2(0, 32) [node name="Ticker" type="Timer" parent="."] [node name="Patterns" type="Node2D" parent="."] position = Vector2(256, -128) [node name="TurnTick" type="Timer" parent="."] wait_time = 0.1 one_shot = true [node name="Borders" type="Node2D" parent="."] [node name="Border" parent="Borders" groups=["LeftBorder"] instance=ExtResource("4_3j08q")] [node name="CollisionShape2D" parent="Borders/Border" index="0" groups=["LeftBorder"]] position = Vector2(-64, 512) shape = SubResource("RectangleShape2D_flipi") [node name="Border2" parent="Borders" groups=["RightBorder"] instance=ExtResource("4_3j08q")] [node name="CollisionShape2D" parent="Borders/Border2" index="0" groups=["RightBorder"]] position = Vector2(704, 512) shape = SubResource("RectangleShape2D_flipi") [node name="Bottom" parent="." groups=["Floor"] instance=ExtResource("5_14njh")] position = Vector2(320, 1312) collision_mask = 2 [node name="CollisionShape2D" parent="Bottom" index="0"] position = Vector2(0, 32) shape = SubResource("RectangleShape2D_rxd0s") [node name="LoseArea" parent="." instance=ExtResource("5_u5wlg")] [node name="CollisionShape2D" type="CollisionShape2D" parent="LoseArea"] position = Vector2(320, -128) shape = SubResource("RectangleShape2D_m21a1") [node name="GameTimer" type="Timer" parent="."] autostart = true [node name="Camera2D" type="Camera2D" parent="."] position = Vector2(320, 640) script = ExtResource("6_mbeib") [node name="CanvasLayer" type="CanvasLayer" parent="Camera2D"] [node name="Control" type="Control" parent="Camera2D/CanvasLayer"] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme = ExtResource("7_38u5s") script = ExtResource("8_4bfjb") [node name="VBoxContainer" type="VBoxContainer" parent="Camera2D/CanvasLayer/Control"] layout_mode = 1 offset_left = 64.0 offset_top = 64.0 offset_right = 274.0 offset_bottom = 244.0 [node name="HBoxContainer" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control/VBoxContainer"] layout_mode = 2 [node name="Score" type="Label" parent="Camera2D/CanvasLayer/Control/VBoxContainer/HBoxContainer"] layout_mode = 2 text = "Score: " label_settings = ExtResource("9_i2h5u") horizontal_alignment = 1 vertical_alignment = 1 [node name="ScoreValue" type="Label" parent="Camera2D/CanvasLayer/Control/VBoxContainer/HBoxContainer"] layout_mode = 2 label_settings = ExtResource("9_i2h5u") horizontal_alignment = 1 [node name="HBoxContainer2" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control/VBoxContainer"] layout_mode = 2 [node name="Time" type="Label" parent="Camera2D/CanvasLayer/Control/VBoxContainer/HBoxContainer2"] layout_mode = 2 text = "Time:" label_settings = ExtResource("9_i2h5u") horizontal_alignment = 1 vertical_alignment = 1 [node name="TimeValue" type="Label" parent="Camera2D/CanvasLayer/Control/VBoxContainer/HBoxContainer2"] layout_mode = 2 label_settings = ExtResource("9_i2h5u") horizontal_alignment = 1 vertical_alignment = 1 [node name="HBoxContainer3" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control"] visible = false modulate = Color(1, 1, 1, 0.588235) layout_mode = 1 anchors_preset = 2 anchor_top = 1.0 anchor_bottom = 1.0 offset_left = 64.0 offset_top = -240.0 offset_right = 252.0 offset_bottom = -148.0 grow_vertical = 0 scale = Vector2(2, 2) alignment = 2 [node name="left_Button" type="Button" parent="Camera2D/CanvasLayer/Control/HBoxContainer3"] layout_mode = 2 action_mode = 0 icon = ExtResource("10_vgg21") icon_alignment = 1 [node name="right_Button" type="Button" parent="Camera2D/CanvasLayer/Control/HBoxContainer3"] layout_mode = 2 action_mode = 0 icon = ExtResource("11_pa3jp") icon_alignment = 1 [node name="HBoxContainer4" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control"] visible = false modulate = Color(1, 1, 1, 0.588235) layout_mode = 1 anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -432.0 offset_top = -240.0 offset_right = -244.0 offset_bottom = -148.0 grow_horizontal = 0 grow_vertical = 0 scale = Vector2(2, 2) [node name="rotate_left_Button" type="Button" parent="Camera2D/CanvasLayer/Control/HBoxContainer4"] layout_mode = 2 action_mode = 0 icon = ExtResource("12_qk3ju") icon_alignment = 1 [node name="rotate_right_Button" type="Button" parent="Camera2D/CanvasLayer/Control/HBoxContainer4"] layout_mode = 2 action_mode = 0 icon = ExtResource("13_kls78") icon_alignment = 1 [node name="HBoxContainer5" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control"] visible = false modulate = Color(1, 1, 1, 0.588235) layout_mode = 1 anchors_preset = 7 anchor_left = 0.5 anchor_top = 1.0 anchor_right = 0.5 anchor_bottom = 1.0 offset_left = -92.0 offset_top = -240.0 offset_right = 4.0 offset_bottom = -148.0 grow_horizontal = 2 grow_vertical = 0 scale = Vector2(2, 2) [node name="down_Button" type="Button" parent="Camera2D/CanvasLayer/Control/HBoxContainer5"] layout_mode = 2 action_mode = 0 icon = ExtResource("14_i1yud") icon_alignment = 1 [node name="Background" type="Sprite2D" parent="."] position = Vector2(320, 640) scale = Vector2(10, 20) [node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."] stream = ExtResource("16_ng6e7") volume_db = 5.0 autoplay = true [connection signal="timeout" from="Ticker" to="." method="_on_ticker_timeout"] [connection signal="timeout" from="TurnTick" to="." method="_on_turn_tick_timeout"] [connection signal="timeout" from="GameTimer" to="." method="_on_game_timer_timeout"] [connection signal="pressed" from="Camera2D/CanvasLayer/Control/HBoxContainer3/left_Button" to="Camera2D/CanvasLayer/Control" method="_on_left_button_pressed"] [connection signal="pressed" from="Camera2D/CanvasLayer/Control/HBoxContainer3/right_Button" to="Camera2D/CanvasLayer/Control" method="_on_right_button_pressed"] [connection signal="pressed" from="Camera2D/CanvasLayer/Control/HBoxContainer4/rotate_left_Button" to="Camera2D/CanvasLayer/Control" method="_on_rotate_left_button_pressed"] [connection signal="pressed" from="Camera2D/CanvasLayer/Control/HBoxContainer4/rotate_right_Button" to="Camera2D/CanvasLayer/Control" method="_on_rotate_right_button_pressed"] [connection signal="button_down" from="Camera2D/CanvasLayer/Control/HBoxContainer5/down_Button" to="Camera2D/CanvasLayer/Control" method="_on_down_button_button_down"] [connection signal="button_up" from="Camera2D/CanvasLayer/Control/HBoxContainer5/down_Button" to="Camera2D/CanvasLayer/Control" method="_on_down_button_button_up"] [editable path="Borders/Border"] [editable path="Borders/Border2"] [editable path="Bottom"]