diff options
Diffstat (limited to 'demos/2d/tetris/grid.tscn')
-rw-r--r-- | demos/2d/tetris/grid.tscn | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/demos/2d/tetris/grid.tscn b/demos/2d/tetris/grid.tscn new file mode 100644 index 0000000000..9df85e3817 --- /dev/null +++ b/demos/2d/tetris/grid.tscn @@ -0,0 +1,47 @@ +[gd_scene load_steps=2 format=1] + +[ext_resource path="res://grid.gd" type="Script" id=1] + +[node name="Grid" type="Control"] + +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 = 40.0 +margin/bottom = 40.0 +script/script = ExtResource( 1 ) + +[node name="timer" type="Timer" parent="."] + +process_mode = 1 +wait_time = 1.0 +one_shot = false +autostart = false + +[node name="gameover" type="Label" parent="."] + +anchor/right = 1 +anchor/bottom = 1 +focus/ignore_mouse = true +focus/stop_mouse = true +size_flags/horizontal = 2 +margin/left = 0.0 +margin/top = 0.0 +margin/right = 0.0 +margin/bottom = 0.0 +custom_colors/font_color = Color( 1, 1, 1, 1 ) +custom_colors/font_color_shadow = Color( 0, 0, 0, 1 ) +custom_constants/shadow_offset_x = 1 +custom_constants/shadow_offset_y = 1 +align = 1 +valign = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 + +[connection signal="timeout" from="timer" to="." method="piece_move_down"] + + |