summaryrefslogtreecommitdiff
path: root/main.tscn
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2026-03-21 11:23:59 +0100
committerDaniel Weipert <git@mail.dweipert.de>2026-03-21 11:23:59 +0100
commit271f1db35e1654d0e25e2025c86d46ba401d288e (patch)
tree3ea40d061254d2a7745b941ef309fc71fc4a06d7 /main.tscn
initial commitHEADmain
Diffstat (limited to 'main.tscn')
-rw-r--r--main.tscn104
1 files changed, 104 insertions, 0 deletions
diff --git a/main.tscn b/main.tscn
new file mode 100644
index 0000000..6746914
--- /dev/null
+++ b/main.tscn
@@ -0,0 +1,104 @@
+[gd_scene format=3 uid="uid://7we6j188njrf"]
+
+[ext_resource type="Script" uid="uid://bk0pedc84ybq4" path="res://main.gd" id="1_ig7tw"]
+[ext_resource type="Theme" uid="uid://qlaurqwpvca4" path="res://theme.tres" id="2_0xm2m"]
+[ext_resource type="Texture2D" uid="uid://ck2vq6wfki52d" path="res://ui.png" id="2_h2yge"]
+[ext_resource type="Texture2D" uid="uid://b2xdvg8kpuenh" path="res://preview-segment-6x6.png" id="4_1bvp3"]
+
+[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_1bvp3"]
+texture = ExtResource("2_h2yge")
+
+[sub_resource type="TileSet" id="TileSet_ig7tw"]
+tile_size = Vector2i(6, 6)
+
+[sub_resource type="RectangleShape2D" id="RectangleShape2D_h2yge"]
+size = Vector2(108, 132)
+
+[node name="Main" type="Node2D" unique_id=1578992227]
+script = ExtResource("1_ig7tw")
+score_threshold = 10000
+
+[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=2121828730]
+layer = -1
+
+[node name="PanelContainer" type="PanelContainer" parent="CanvasLayer" unique_id=708690395]
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+theme = ExtResource("2_0xm2m")
+theme_override_styles/panel = SubResource("StyleBoxTexture_1bvp3")
+
+[node name="Control" type="Control" parent="CanvasLayer/PanelContainer" unique_id=1247878242]
+layout_mode = 2
+
+[node name="NextTetromino" type="TextureRect" parent="CanvasLayer/PanelContainer/Control" unique_id=1522928335]
+unique_name_in_owner = true
+layout_mode = 0
+offset_left = 119.0
+offset_top = 6.0
+offset_right = 154.0
+offset_bottom = 33.0
+theme = ExtResource("2_0xm2m")
+expand_mode = 2
+stretch_mode = 5
+
+[node name="Score" type="Label" parent="CanvasLayer/PanelContainer/Control" unique_id=399456442]
+unique_name_in_owner = true
+layout_mode = 0
+offset_left = 117.0
+offset_top = 38.0
+offset_right = 156.0
+offset_bottom = 44.0
+text = "0"
+horizontal_alignment = 1
+
+[node name="Debug" type="Label" parent="CanvasLayer/PanelContainer/Control" unique_id=2044531315]
+unique_name_in_owner = true
+layout_mode = 0
+offset_left = 8.0
+offset_top = 8.0
+offset_right = 48.0
+offset_bottom = 31.0
+
+[node name="TickTimer" type="Timer" parent="." unique_id=439884902]
+autostart = true
+
+[node name="SpawnPosition" type="Marker2D" parent="." unique_id=1490938145]
+position = Vector2(59, 18)
+
+[node name="Grid" type="TileMapLayer" parent="." unique_id=647850505]
+position = Vector2(5, 6)
+tile_set = SubResource("TileSet_ig7tw")
+
+[node name="Area" type="CollisionShape2D" parent="." unique_id=758334154]
+position = Vector2(59, 72)
+shape = SubResource("RectangleShape2D_h2yge")
+
+[node name="RowOverlay" type="ColorRect" parent="." unique_id=1840142850]
+visible = false
+offset_right = 40.0
+offset_bottom = 40.0
+
+[node name="ProjectionSegments" type="Node2D" parent="." unique_id=962002920]
+visible = false
+modulate = Color(1, 1, 1, 0.39215687)
+
+[node name="ProjectionSegment" type="Sprite2D" parent="ProjectionSegments" unique_id=1439186625]
+texture = ExtResource("4_1bvp3")
+centered = false
+
+[node name="ProjectionSegment2" type="Sprite2D" parent="ProjectionSegments" unique_id=150716240]
+texture = ExtResource("4_1bvp3")
+centered = false
+
+[node name="ProjectionSegment3" type="Sprite2D" parent="ProjectionSegments" unique_id=2060331950]
+texture = ExtResource("4_1bvp3")
+centered = false
+
+[node name="ProjectionSegment4" type="Sprite2D" parent="ProjectionSegments" unique_id=1657273535]
+texture = ExtResource("4_1bvp3")
+centered = false
+
+[connection signal="timeout" from="TickTimer" to="." method="_on_tick_timer_timeout"]