tetris.tscn 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. [gd_scene load_steps=2 format=1]
  2. [ext_resource path="res://grid.tscn" type="PackedScene" id=1]
  3. [node name="Tetris" type="Panel"]
  4. focus/ignore_mouse = false
  5. focus/stop_mouse = true
  6. size_flags/horizontal = 2
  7. size_flags/vertical = 2
  8. margin/left = 0.0
  9. margin/top = 0.0
  10. margin/right = 400.0
  11. margin/bottom = 400.0
  12. [node name="Grid" parent="." instance=ExtResource( 1 )]
  13. margin/left = 40.0
  14. margin/top = 35.0
  15. margin/right = 80.0
  16. margin/bottom = 75.0
  17. [node name="Label" type="Label" parent="."]
  18. focus/ignore_mouse = true
  19. focus/stop_mouse = true
  20. size_flags/horizontal = 2
  21. margin/left = 243.0
  22. margin/top = 36.0
  23. margin/right = 283.0
  24. margin/bottom = 49.0
  25. text = "Score:"
  26. percent_visible = 1.0
  27. lines_skipped = 0
  28. max_lines_visible = -1
  29. [node name="score" type="Label" parent="."]
  30. focus/ignore_mouse = true
  31. focus/stop_mouse = true
  32. size_flags/horizontal = 2
  33. margin/left = 252.0
  34. margin/top = 55.0
  35. margin/right = 293.0
  36. margin/bottom = 68.0
  37. text = "0"
  38. percent_visible = 1.0
  39. lines_skipped = 0
  40. max_lines_visible = -1
  41. [node name="restart" type="Button" parent="."]
  42. focus/ignore_mouse = false
  43. focus/stop_mouse = true
  44. size_flags/horizontal = 2
  45. size_flags/vertical = 2
  46. margin/left = 243.0
  47. margin/top = 292.0
  48. margin/right = 303.0
  49. margin/bottom = 311.0
  50. toggle_mode = false
  51. text = "Restart"
  52. flat = false
  53. [connection signal="pressed" from="restart" to="Grid" method="restart_pressed"]