Played with UI layouts but keeping this for now. Fixed up config so it has keys() and now we load a boss per level.

This commit is contained in:
Zed A. Shaw 2025-03-05 01:01:36 -05:00
parent 281a7f687a
commit 5c815cf755
6 changed files with 35 additions and 8 deletions

View file

@ -9,7 +9,7 @@ namespace gui {
CombatUI::CombatUI(GameLevel level) :
$level(level)
{
$gui.position(RAY_VIEW_X, RAY_VIEW_HEIGHT, RAY_VIEW_WIDTH, SCREEN_HEIGHT - RAY_VIEW_HEIGHT);
$gui.position(COMBAT_UI_X, COMBAT_UI_Y, COMBAT_UI_WIDTH, COMBAT_UI_HEIGHT);
$gui.layout(
"[*%(100,150)button_attack1 | *%(100,150)button_attack2 | *%(100,150)button_attack3 | *%(100,150)button_heal]"
"[ >.%(100,50)label_hp | *%.(198,50)bar_hp | _ ]");