more ui tweaks and started on enemy health bar

This commit is contained in:
derek
2025-03-19 17:00:08 -05:00
parent 573a20cfa8
commit b85014c48b
13 changed files with 87 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ var crosshair_target
@onready var pickup_item_indicator = preload("res://assets/pickup_item_indicator.tscn")
@onready var wobble_items: Control = $WobbleItems
const STAM_BAR_MAX_OPACITY = 1.0
const CROSSHAIR_SIZE = Vector2(40,40)
@@ -58,6 +59,7 @@ func _ready() -> void:
func _process(delta: float) -> void:
player = level_control.player
if player != null:
#HEALTH
@@ -82,6 +84,7 @@ func _process(delta: float) -> void:
money.text = "$" + str(money_count)
if player.gun != null and player.gun.weapon_info.weapon_type == 0:
if GameGlobals.gun_ammo.has(player.gun.weapon_info.gun_name) and GameGlobals.gun_ammo[player.gun.weapon_info.gun_name] != null:
ammo_counter.visible = true