HUD.tscn 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. [gd_scene load_steps=7 format=2]
  2. [ext_resource path="res://HUD.gd" type="Script" id=1]
  3. [ext_resource path="res://fonts/Xolonium-Regular.ttf" type="DynamicFontData" id=2]
  4. [sub_resource type="DynamicFont" id=1]
  5. size = 64
  6. font_data = ExtResource( 2 )
  7. [sub_resource type="DynamicFont" id=2]
  8. size = 64
  9. font_data = ExtResource( 2 )
  10. [sub_resource type="InputEventAction" id=3]
  11. action = "ui_select"
  12. [sub_resource type="ShortCut" id=4]
  13. shortcut = SubResource( 3 )
  14. [node name="HUD" type="CanvasLayer"]
  15. script = ExtResource( 1 )
  16. [node name="ScoreLabel" type="Label" parent="."]
  17. anchor_right = 1.0
  18. margin_bottom = 78.0
  19. custom_fonts/font = SubResource( 1 )
  20. text = "0"
  21. align = 1
  22. [node name="MessageLabel" type="Label" parent="."]
  23. anchor_top = 0.5
  24. anchor_right = 1.0
  25. anchor_bottom = 0.5
  26. margin_top = -79.5
  27. margin_bottom = 79.5
  28. custom_fonts/font = SubResource( 1 )
  29. text = "Dodge the
  30. Creeps"
  31. align = 1
  32. [node name="StartButton" type="Button" parent="."]
  33. anchor_left = 0.5
  34. anchor_top = 1.0
  35. anchor_right = 0.5
  36. anchor_bottom = 1.0
  37. margin_left = -90.0
  38. margin_top = -200.0
  39. margin_right = 90.0
  40. margin_bottom = -100.0
  41. custom_fonts/font = SubResource( 2 )
  42. shortcut = SubResource( 4 )
  43. text = "Start"
  44. [node name="MessageTimer" type="Timer" parent="."]
  45. one_shot = true
  46. [connection signal="pressed" from="StartButton" to="." method="_on_StartButton_pressed"]
  47. [connection signal="timeout" from="MessageTimer" to="." method="_on_MessageTimer_timeout"]