Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

First UI pass - Leader sidebar #17

@erlend-sh

Description

@erlend-sh

The first key UI addition in the game will be the sidebar menu, featuring all the Leaders in play.

shotcaller-ui-mockup

Each leader is listed with a number of UI elements:

shotcaller-profile

⚔️ 🛡️ ⏳ 👜

  • Avatar
  • Coins
  • Level (not yet present in mockup)
  • Name
  • Health Points
  • Mana Points
  • Experience Points (maybe this would be a plain number next to coins instead)
  • Offensive items
  • Defensive items
  • Consumables
  • Store button (won't be functional until Item purchasing #16 arrives).

UI System Basics

The ui system will draw any entity that has either a Sprite or SpriteIndex Component.

SpriteIndex is used to hold the index of the 2d sprite in the spritesheet.

Sprite is used for text-based rendering (it holds the letter and colors).

For the rest of the ui, we are just using BTerm's rendering (term.print("text content", position_x, position_y").

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions