HUD.tscn 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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="FontData" id=2]
  4. [sub_resource type="Font" id=1]
  5. size = 64
  6. font_data = ExtResource( 2 )
  7. [sub_resource type="Font" id=2]
  8. size = 64
  9. font_data = ExtResource( 2 )
  10. [sub_resource type="InputEventAction" id=3]
  11. action = "start_game"
  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. offset_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. offset_top = -79.5
  27. offset_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. offset_left = -90.0
  38. offset_top = -200.0
  39. offset_right = 90.0
  40. offset_bottom = -100.0
  41. custom_fonts/font = SubResource( 2 )
  42. shortcut = SubResource( 4 )
  43. text = "Start"
  44. __meta__ = {
  45. "_edit_use_anchors_": false
  46. }
  47. [node name="MessageTimer" type="Timer" parent="."]
  48. one_shot = true
  49. [connection signal="pressed" from="StartButton" to="." method="_on_StartButton_pressed"]
  50. [connection signal="timeout" from="MessageTimer" to="." method="_on_MessageTimer_timeout"]