1
0

title.tscn 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. [gd_scene format=3]
  2. [ext_resource type="Script" path="res://scripts/title.gd" id="1_title"]
  3. [ext_resource type="Script" path="res://scripts/walls.gd" id="2_walls"]
  4. [ext_resource type="Script" path="res://scripts/core.gd" id="3_core"]
  5. [ext_resource type="Script" path="res://scripts/stars.gd" id="4_stars"]
  6. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_pill"]
  7. content_margin_left = 48.0
  8. content_margin_top = 12.0
  9. content_margin_right = 48.0
  10. content_margin_bottom = 14.0
  11. bg_color = Color(0.992157, 0.592157, 0.121569, 1)
  12. corner_radius_top_left = 34
  13. corner_radius_top_right = 34
  14. corner_radius_bottom_right = 34
  15. corner_radius_bottom_left = 34
  16. anti_aliasing_size = 1.5
  17. [node name="Title" type="Node2D"]
  18. script = ExtResource("1_title")
  19. [node name="Walls" type="StaticBody2D" parent="."]
  20. script = ExtResource("2_walls")
  21. [node name="Core" type="StaticBody2D" parent="."]
  22. script = ExtResource("3_core")
  23. radius = 180.0
  24. metadata/bounce = 0.9
  25. [node name="Balls" type="Node2D" parent="."]
  26. [node name="UI" type="CanvasLayer" parent="."]
  27. [node name="Title" type="Label" parent="UI"]
  28. anchor_top = 0.28
  29. anchor_right = 1.0
  30. anchor_bottom = 0.28
  31. offset_top = -70.0
  32. offset_bottom = 70.0
  33. grow_horizontal = 2
  34. grow_vertical = 2
  35. theme_override_font_sizes/font_size = 96
  36. text = "RedCore"
  37. horizontal_alignment = 1
  38. vertical_alignment = 1
  39. [node name="MusicToggle" type="Button" parent="UI"]
  40. anchor_left = 1.0
  41. anchor_right = 1.0
  42. offset_left = -150.0
  43. offset_top = 8.0
  44. offset_right = -8.0
  45. offset_bottom = 48.0
  46. grow_horizontal = 0
  47. theme_override_colors/font_color = Color(1, 1, 1, 0.75)
  48. theme_override_font_sizes/font_size = 20
  49. text = "Music: on"
  50. flat = true
  51. alignment = 2
  52. [node name="Info" type="VBoxContainer" parent="UI"]
  53. anchor_top = 0.56
  54. anchor_right = 1.0
  55. anchor_bottom = 0.56
  56. offset_top = -60.0
  57. offset_bottom = 60.0
  58. grow_horizontal = 2
  59. grow_vertical = 2
  60. alignment = 1
  61. [node name="Level" type="Label" parent="UI/Info"]
  62. layout_mode = 2
  63. theme_override_font_sizes/font_size = 40
  64. text = "Level 0"
  65. horizontal_alignment = 1
  66. [node name="Totals" type="HBoxContainer" parent="UI/Info"]
  67. layout_mode = 2
  68. alignment = 1
  69. [node name="Star" type="Control" parent="UI/Info/Totals"]
  70. layout_mode = 2
  71. script = ExtResource("4_stars")
  72. count = 1
  73. filled = 1
  74. star_size = 26.0
  75. [node name="Count" type="Label" parent="UI/Info/Totals"]
  76. layout_mode = 2
  77. theme_override_font_sizes/font_size = 26
  78. text = "0"
  79. [node name="Best" type="Label" parent="UI/Info"]
  80. layout_mode = 2
  81. theme_override_colors/font_color = Color(1, 1, 1, 0.6)
  82. theme_override_font_sizes/font_size = 20
  83. horizontal_alignment = 1
  84. [node name="Play" type="Button" parent="UI"]
  85. anchor_left = 0.5
  86. anchor_top = 0.7
  87. anchor_right = 0.5
  88. anchor_bottom = 0.7
  89. offset_left = -130.0
  90. offset_top = -34.0
  91. offset_right = 130.0
  92. offset_bottom = 34.0
  93. grow_horizontal = 2
  94. grow_vertical = 2
  95. theme_override_colors/font_color = Color(0.152941, 0.156863, 0.133333, 1)
  96. theme_override_colors/font_hover_color = Color(0.152941, 0.156863, 0.133333, 1)
  97. theme_override_colors/font_pressed_color = Color(0.152941, 0.156863, 0.133333, 1)
  98. theme_override_font_sizes/font_size = 36
  99. theme_override_styles/normal = SubResource("StyleBoxFlat_pill")
  100. theme_override_styles/hover = SubResource("StyleBoxFlat_pill")
  101. theme_override_styles/pressed = SubResource("StyleBoxFlat_pill")
  102. theme_override_styles/focus = SubResource("StyleBoxFlat_pill")
  103. text = "Play"
  104. [node name="Next" type="Label" parent="UI"]
  105. anchor_top = 0.79
  106. anchor_right = 1.0
  107. anchor_bottom = 0.79
  108. offset_left = 16.0
  109. offset_top = -16.0
  110. offset_right = -16.0
  111. offset_bottom = 16.0
  112. grow_horizontal = 2
  113. grow_vertical = 2
  114. theme_override_colors/font_color = Color(0.4, 0.85098, 0.937255, 1)
  115. theme_override_font_sizes/font_size = 22
  116. horizontal_alignment = 1
  117. [node name="Decay" type="Label" parent="UI"]
  118. anchor_top = 0.87
  119. anchor_right = 1.0
  120. anchor_bottom = 0.87
  121. offset_left = 24.0
  122. offset_top = -24.0
  123. offset_right = -24.0
  124. offset_bottom = 30.0
  125. grow_horizontal = 2
  126. grow_vertical = 2
  127. theme_override_colors/font_color = Color(1, 1, 1, 0.55)
  128. theme_override_font_sizes/font_size = 17
  129. horizontal_alignment = 1
  130. autowrap_mode = 3