Tetris Clone written in Godot, primarily for mobile devices
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

82 lines
2.2 KiB

[gd_scene load_steps=5 format=2]
[ext_resource path="res://GameBoard.tscn" type="PackedScene" id=1]
[ext_resource path="res://UI.gd" type="Script" id=2]
[ext_resource path="res://Main.gd" type="Script" id=3]
[ext_resource path="res://Resources/UITextLarge.tres" type="DynamicFont" id=4]
[node name="Main" type="Node"]
script = ExtResource( 3 )
[node name="GameBoard" parent="." instance=ExtResource( 1 )]
position = Vector2( 540, 1000 )
[node name="UI" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="UI"]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HBoxContainer" type="HBoxContainer" parent="UI/VBoxContainer"]
margin_right = 1080.0
margin_bottom = 150.0
[node name="Score" type="Label" parent="UI/VBoxContainer/HBoxContainer"]
margin_top = 3.0
margin_right = 107.0
margin_bottom = 147.0
custom_fonts/font = ExtResource( 4 )
text = "0"
[node name="Spacer" type="Control" parent="UI/VBoxContainer/HBoxContainer"]
margin_left = 111.0
margin_right = 926.0
margin_bottom = 150.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="NextShape" type="PanelContainer" parent="UI/VBoxContainer/HBoxContainer"]
margin_left = 930.0
margin_right = 1080.0
margin_bottom = 150.0
rect_min_size = Vector2( 150, 150 )
[node name="Origin" type="Node2D" parent="UI/VBoxContainer/HBoxContainer/NextShape"]
position = Vector2( 67, 100 )
scale = Vector2( 0.5, 0.5 )
[node name="GameOverUI" type="CenterContainer" parent="UI"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="UI/GameOverUI"]
margin_left = 42.0
margin_top = 811.0
margin_right = 1037.0
margin_bottom = 1109.0
[node name="GameOverText" type="Label" parent="UI/GameOverUI/VBoxContainer"]
margin_right = 995.0
margin_bottom = 144.0
custom_fonts/font = ExtResource( 4 )
text = "Game Over!"
[node name="RestartButton" type="Button" parent="UI/GameOverUI/VBoxContainer"]
margin_top = 148.0
margin_right = 995.0
margin_bottom = 298.0
custom_fonts/font = ExtResource( 4 )
text = "Restart"