Commit graph

9 commits

Author SHA1 Message Date
1112a9f6da player: add Gear.unequip() API 2026-01-22 22:28:28 +13:00
42de0ed122 player: organise code 2026-01-22 21:25:16 +13:00
e6cbaba0fa player: add health callbacks
Allows us to update the HUD on health change
2026-01-22 21:25:16 +13:00
47aa5ac9aa player: display health in HUD 2026-01-22 21:25:16 +13:00
df449af0f3 player: rename BackpackUI to HUD 2026-01-22 21:25:16 +13:00
9b229e5d8f player: handle gears on respawn
Use a preloaded scene to give the player the starting gear rather than
making a duplicate of the gear on spawn, and strip any gears from the
backpack on death.

Remove Gear from the editor scene tree and add it on respawn().
2026-01-22 14:29:59 +13:00
d395bb6f26 player: make spawn @onready, make gear_slots const 2026-01-22 14:28:40 +13:00
2067317a09 player: remove ui_backpack keybind 2026-01-22 14:27:00 +13:00
79951d8075 initial commit 2026-01-21 20:50:41 +13:00