255 lines
9.2 KiB
Text
255 lines
9.2 KiB
Text
[gd_scene load_steps=15 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="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="PackedScene" uid="uid://ibyhtfpc52vc" path="res://scenes/Grid/row_test.tscn" id="14_ogg0j"]
|
|
[ext_resource type="AudioStream" uid="uid://tf3d2uu84gf1" path="res://assets/Audio/Background.wav" id="16_ng6e7"]
|
|
|
|
[node name="Grid" type="Node2D"]
|
|
script = ExtResource("1_vie5m")
|
|
|
|
[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(288, -96)
|
|
|
|
[node name="GameTimer" type="Timer" parent="."]
|
|
|
|
[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="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource("16_ng6e7")
|
|
volume_db = 3.0
|
|
|
|
[node name="Borders" type="Node2D" parent="."]
|
|
|
|
[node name="Border" parent="Borders" instance=ExtResource("4_3j08q")]
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Borders/Border"]
|
|
polygon = PackedVector2Array(0, -64, 0, 1280, 640, 1280, 640, -64, 1088, -64, 1088, 1536, -448, 1536, -448, -64)
|
|
|
|
[node name="RayCast2D" type="RayCast2D" parent="Borders"]
|
|
position = Vector2(32, -32)
|
|
target_position = Vector2(576, 0)
|
|
collision_mask = 2
|
|
hit_from_inside = true
|
|
|
|
[node name="Rows" type="Node2D" parent="."]
|
|
|
|
[node name="RowTest" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 1216)
|
|
|
|
[node name="RowTest2" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 1152)
|
|
|
|
[node name="RowTest3" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 1088)
|
|
|
|
[node name="RowTest4" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 1024)
|
|
|
|
[node name="RowTest5" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 960)
|
|
|
|
[node name="RowTest6" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 896)
|
|
|
|
[node name="RowTest7" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 832)
|
|
|
|
[node name="RowTest8" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 768)
|
|
|
|
[node name="RowTest9" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 704)
|
|
|
|
[node name="RowTest10" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 640)
|
|
|
|
[node name="RowTest11" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 576)
|
|
|
|
[node name="RowTest12" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 512)
|
|
|
|
[node name="RowTest13" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 448)
|
|
|
|
[node name="RowTest14" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 384)
|
|
|
|
[node name="RowTest15" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 320)
|
|
|
|
[node name="RowTest16" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 256)
|
|
|
|
[node name="RowTest17" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 192)
|
|
|
|
[node name="RowTest18" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 128)
|
|
|
|
[node name="RowTest19" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
position = Vector2(0, 64)
|
|
|
|
[node name="RowTest20" parent="Rows" instance=ExtResource("14_ogg0j")]
|
|
|
|
[node name="TestTimer" type="Timer" parent="."]
|
|
one_shot = true
|
|
|
|
[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"]
|
|
[connection signal="timeout" from="TestTimer" to="." method="_on_test_timer_timeout"]
|