hud.tscn 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://font/8bit.tres" type="DynamicFont" id=1]
  3. [ext_resource path="res://hud.gd" type="Script" id=2]
  4. [sub_resource type="StyleBoxFlat" id=1]
  5. bg_color = Color( 0, 0.882353, 1, 1 )
  6. anti_aliasing = false
  7. [sub_resource type="StyleBoxFlat" id=2]
  8. bg_color = Color( 1, 0, 0, 1 )
  9. anti_aliasing = false
  10. [node name="player1" type="VBoxContainer"]
  11. margin_right = 97.0
  12. margin_bottom = 60.0
  13. script = ExtResource( 2 )
  14. [node name="username" type="Label" parent="."]
  15. margin_right = 97.0
  16. margin_bottom = 12.0
  17. custom_fonts/font = ExtResource( 1 )
  18. text = "Player 1"
  19. __meta__ = {
  20. "_edit_use_anchors_": false
  21. }
  22. [node name="xp" type="Label" parent="."]
  23. margin_top = 16.0
  24. margin_right = 97.0
  25. margin_bottom = 28.0
  26. custom_fonts/font = ExtResource( 1 )
  27. text = "0"
  28. __meta__ = {
  29. "_edit_use_anchors_": false
  30. }
  31. [node name="xp" type="ProgressBar" parent="xp"]
  32. show_behind_parent = true
  33. anchor_right = 1.0
  34. anchor_bottom = 1.0
  35. custom_fonts/font = ExtResource( 1 )
  36. custom_styles/fg = SubResource( 1 )
  37. percent_visible = false
  38. __meta__ = {
  39. "_edit_use_anchors_": false
  40. }
  41. [node name="hp" type="Label" parent="."]
  42. margin_top = 32.0
  43. margin_right = 97.0
  44. margin_bottom = 44.0
  45. custom_fonts/font = ExtResource( 1 )
  46. text = "100"
  47. __meta__ = {
  48. "_edit_use_anchors_": false
  49. }
  50. [node name="health" type="ProgressBar" parent="hp"]
  51. show_behind_parent = true
  52. anchor_right = 1.0
  53. anchor_bottom = 1.0
  54. custom_fonts/font = ExtResource( 1 )
  55. custom_styles/fg = SubResource( 2 )
  56. step = 1.0
  57. value = 100.0
  58. percent_visible = false
  59. [node name="enemieskilled" type="Label" parent="."]
  60. margin_top = 48.0
  61. margin_right = 97.0
  62. margin_bottom = 60.0
  63. custom_fonts/font = ExtResource( 1 )
  64. text = "enemies killed: 0"
  65. __meta__ = {
  66. "_edit_use_anchors_": false
  67. }
  68. [node name="lv" type="Label" parent="."]
  69. margin_top = 64.0
  70. margin_right = 97.0
  71. margin_bottom = 76.0
  72. custom_fonts/font = ExtResource( 1 )
  73. text = "level: 1"
  74. __meta__ = {
  75. "_edit_use_anchors_": false
  76. }