hud.tscn 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. __meta__ = {
  15. "_edit_use_anchors_": false
  16. }
  17. [node name="username" type="Label" parent="."]
  18. margin_right = 97.0
  19. margin_bottom = 12.0
  20. custom_fonts/font = ExtResource( 1 )
  21. text = "Player 1"
  22. __meta__ = {
  23. "_edit_use_anchors_": false
  24. }
  25. [node name="xp" type="ProgressBar" parent="."]
  26. margin_top = 16.0
  27. margin_right = 97.0
  28. margin_bottom = 28.0
  29. custom_styles/fg = SubResource( 1 )
  30. custom_fonts/font = ExtResource( 1 )
  31. __meta__ = {
  32. "_edit_use_anchors_": false
  33. }
  34. [node name="health" type="ProgressBar" parent="."]
  35. margin_top = 32.0
  36. margin_right = 97.0
  37. margin_bottom = 44.0
  38. custom_styles/fg = SubResource( 2 )
  39. custom_fonts/font = ExtResource( 1 )
  40. step = 1.0
  41. value = 100.0
  42. [node name="enemieskilled" type="Label" parent="."]
  43. margin_top = 48.0
  44. margin_right = 97.0
  45. margin_bottom = 60.0
  46. custom_fonts/font = ExtResource( 1 )
  47. text = "enemies killed: 0"
  48. __meta__ = {
  49. "_edit_use_anchors_": false
  50. }