GameOver.tscn (1768B)
1 [gd_scene load_steps=6 format=2] 2 3 [ext_resource path="res://assets/fonts/JetBrainsMono-Regular.ttf" type="DynamicFontData" id=1] 4 [ext_resource path="res://assets/fonts/SF-Pro-Rounded-Black.otf" type="DynamicFontData" id=2] 5 [ext_resource path="res://scripts/GameOverButton.gd" type="Script" id=3] 6 7 [sub_resource type="DynamicFont" id=1] 8 size = 128 9 use_filter = true 10 font_data = ExtResource( 1 ) 11 12 [sub_resource type="DynamicFont" id=2] 13 size = 48 14 use_filter = true 15 font_data = ExtResource( 2 ) 16 17 [node name="Control" type="Control"] 18 anchor_right = 1.0 19 anchor_bottom = 1.0 20 __meta__ = { 21 "_edit_use_anchors_": false 22 } 23 24 [node name="ColorRect" type="ColorRect" parent="."] 25 margin_right = 1280.0 26 margin_bottom = 720.0 27 color = Color( 0.266667, 0.00784314, 0.443137, 1 ) 28 __meta__ = { 29 "_edit_use_anchors_": false 30 } 31 32 [node name="Label" type="Label" parent="."] 33 margin_top = 64.0 34 margin_right = 1280.0 35 margin_bottom = 259.0 36 custom_fonts/font = SubResource( 1 ) 37 custom_colors/font_color_shadow = Color( 0.733333, 0, 1, 1 ) 38 custom_constants/shadow_offset_x = 6 39 text = "Game Over" 40 align = 1 41 valign = 1 42 __meta__ = { 43 "_edit_use_anchors_": false 44 } 45 46 [node name="GameOverButton" type="Button" parent="."] 47 anchor_top = -0.328 48 anchor_bottom = -0.328 49 margin_left = 440.0 50 margin_top = 656.16 51 margin_right = 840.0 52 margin_bottom = 781.16 53 custom_fonts/font = SubResource( 2 ) 54 custom_colors/font_color = Color( 0.682353, 0.933333, 0.0392157, 1 ) 55 custom_colors/font_color_hover = Color( 1, 0.556863, 0.0392157, 1 ) 56 custom_colors/font_color_pressed = Color( 0.917647, 0.129412, 0.796078, 1 ) 57 text = "PLAY AGAIN" 58 flat = true 59 script = ExtResource( 3 ) 60 __meta__ = { 61 "_edit_use_anchors_": false 62 } 63 [connection signal="pressed" from="GameOverButton" to="GameOverButton" method="_on_GameOverButton_pressed"]