bullet counter

This commit is contained in:
Haze Weathers 2025-12-14 16:02:46 -06:00
parent 3f2b7e3bd3
commit 5f732e1e6f
7 changed files with 30 additions and 2 deletions

View file

@ -2,10 +2,11 @@
[ext_resource type="Script" uid="uid://dvn62r3oriwu8" path="res://globals/debug_overlay.gd" id="1_7e5kj"]
[node name="DebugOverlay" type="CanvasLayer" node_paths=PackedStringArray("_fps_counter")]
[node name="DebugOverlay" type="CanvasLayer" node_paths=PackedStringArray("_fps_counter", "_bullet_counter")]
layer = 1000
script = ExtResource("1_7e5kj")
_fps_counter = NodePath("VBoxContainer/FPS/FPSCounter")
_bullet_counter = NodePath("VBoxContainer/Bullets/BulletCount")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
@ -18,3 +19,13 @@ text = "FPS:"
[node name="FPSCounter" type="Label" parent="VBoxContainer/FPS"]
layout_mode = 2
[node name="Bullets" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="VBoxContainer/Bullets"]
layout_mode = 2
text = "Total Bullets"
[node name="BulletCount" type="Label" parent="VBoxContainer/Bullets"]
layout_mode = 2