Makes the text in-game easier to read
							parent
							
								
									473a63b5e9
								
							
						
					
					
						commit
						9b1fd3a8c2
					
				| 
						 | 
				
			
			@ -7,18 +7,25 @@
 | 
			
		|||
[sub_resource type="LabelSettings" id="LabelSettings_7upku"]
 | 
			
		||||
font = ExtResource("2_i22rp")
 | 
			
		||||
font_size = 32
 | 
			
		||||
font_color = Color(0, 0, 0, 1)
 | 
			
		||||
 | 
			
		||||
[node name="GameOverMenu" type="VBoxContainer" groups=["GameOverMenu"]]
 | 
			
		||||
[node name="Panel" type="Panel" groups=["GameOverMenu"]]
 | 
			
		||||
visible = false
 | 
			
		||||
anchors_preset = 15
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
grow_horizontal = 2
 | 
			
		||||
grow_vertical = 2
 | 
			
		||||
 | 
			
		||||
[node name="GameOverMenu" type="VBoxContainer" parent="."]
 | 
			
		||||
layout_mode = 1
 | 
			
		||||
anchors_preset = 15
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
grow_horizontal = 2
 | 
			
		||||
grow_vertical = 2
 | 
			
		||||
script = ExtResource("1_arass")
 | 
			
		||||
 | 
			
		||||
[node name="FinalScore" type="Label" parent="."]
 | 
			
		||||
[node name="FinalScore" type="Label" parent="GameOverMenu"]
 | 
			
		||||
layout_mode = 2
 | 
			
		||||
text = "Final Score
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -26,19 +33,19 @@ text = "Final Score
 | 
			
		|||
label_settings = SubResource("LabelSettings_7upku")
 | 
			
		||||
horizontal_alignment = 1
 | 
			
		||||
 | 
			
		||||
[node name="Control" type="Control" parent="."]
 | 
			
		||||
[node name="Control" type="Control" parent="GameOverMenu"]
 | 
			
		||||
layout_mode = 2
 | 
			
		||||
size_flags_vertical = 3
 | 
			
		||||
 | 
			
		||||
[node name="Restart" type="Button" parent="."]
 | 
			
		||||
[node name="Restart" type="Button" parent="GameOverMenu"]
 | 
			
		||||
layout_mode = 2
 | 
			
		||||
theme = ExtResource("3_dsdey")
 | 
			
		||||
text = "Restart"
 | 
			
		||||
 | 
			
		||||
[node name="MainMenu" type="Button" parent="."]
 | 
			
		||||
[node name="MainMenu" type="Button" parent="GameOverMenu"]
 | 
			
		||||
layout_mode = 2
 | 
			
		||||
text = "Main Menu"
 | 
			
		||||
 | 
			
		||||
[connection signal="visibility_changed" from="." to="." method="update_score"]
 | 
			
		||||
[connection signal="pressed" from="Restart" to="." method="restart"]
 | 
			
		||||
[connection signal="pressed" from="MainMenu" to="." method="back"]
 | 
			
		||||
[connection signal="visibility_changed" from="GameOverMenu" to="GameOverMenu" method="update_score"]
 | 
			
		||||
[connection signal="pressed" from="GameOverMenu/Restart" to="GameOverMenu" method="restart"]
 | 
			
		||||
[connection signal="pressed" from="GameOverMenu/MainMenu" to="GameOverMenu" method="back"]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,7 +29,6 @@ sources/0 = SubResource("TileSetAtlasSource_6bp64")
 | 
			
		|||
[sub_resource type="LabelSettings" id="LabelSettings_wsu2k"]
 | 
			
		||||
font = ExtResource("14_jkdf5")
 | 
			
		||||
font_size = 18
 | 
			
		||||
font_color = Color(0, 0, 0, 1)
 | 
			
		||||
 | 
			
		||||
[node name="Main" type="Node2D"]
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -37,6 +36,12 @@ font_color = Color(0, 0, 0, 1)
 | 
			
		|||
texture = ExtResource("1_6bp64")
 | 
			
		||||
centered = false
 | 
			
		||||
 | 
			
		||||
[node name="Panel" type="Panel" parent="."]
 | 
			
		||||
offset_left = 20.0
 | 
			
		||||
offset_top = 154.0
 | 
			
		||||
offset_right = 141.0
 | 
			
		||||
offset_bottom = 623.0
 | 
			
		||||
 | 
			
		||||
[node name="Level" parent="." instance=ExtResource("1_bo1nx")]
 | 
			
		||||
position = Vector2(640, 320)
 | 
			
		||||
scale = Vector2(24, 14)
 | 
			
		||||
| 
						 | 
				
			
			@ -66,10 +71,10 @@ position = Vector2(707, 325)
 | 
			
		|||
[node name="RestartTimer" type="Timer" parent="." groups=["GameClockPause"]]
 | 
			
		||||
 | 
			
		||||
[node name="ScoreDisplay" parent="." instance=ExtResource("4_jjvhh")]
 | 
			
		||||
offset_left = 6.0
 | 
			
		||||
offset_top = 155.0
 | 
			
		||||
offset_right = 158.0
 | 
			
		||||
offset_bottom = 526.0
 | 
			
		||||
offset_left = 1.0
 | 
			
		||||
offset_top = 162.0
 | 
			
		||||
offset_right = 153.0
 | 
			
		||||
offset_bottom = 533.0
 | 
			
		||||
 | 
			
		||||
[node name="GameOverMenu" parent="." instance=ExtResource("5_kry3j")]
 | 
			
		||||
z_index = 1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,6 @@
 | 
			
		|||
[sub_resource type="LabelSettings" id="LabelSettings_abl27"]
 | 
			
		||||
font = ExtResource("2_s1pvd")
 | 
			
		||||
font_size = 22
 | 
			
		||||
font_color = Color(0, 0, 0, 1)
 | 
			
		||||
outline_color = Color(0, 0, 0, 1)
 | 
			
		||||
 | 
			
		||||
[node name="ScoreDisplay" type="VBoxContainer"]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -38,7 +38,7 @@ var snake_part_obj : PackedScene = preload("res://Scenes/snake_part.tscn")
 | 
			
		|||
var timer_ref : Timer = $"../Timer"
 | 
			
		||||
 | 
			
		||||
@onready
 | 
			
		||||
var game_over_menu : VBoxContainer = get_tree().get_first_node_in_group("GameOverMenu")
 | 
			
		||||
var game_over_menu : Panel = get_tree().get_first_node_in_group("GameOverMenu")
 | 
			
		||||
 | 
			
		||||
@onready
 | 
			
		||||
var sprite : Sprite2D = $Sprite2D
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue