After some prototyping I have what I think I want for the map. Just a simple piece of paper you take out that has the ASCII map on it.

This commit is contained in:
Zed A. Shaw 2025-03-21 02:51:02 -04:00
parent acbf384e2a
commit 6c9016eb0f
21 changed files with 1184 additions and 92 deletions

View file

@ -64,9 +64,18 @@ namespace guecs {
text.init(cell, $font);
});
$world.query<lel::Cell, WideText>([this](auto, auto& cell, auto& text) {
text.init(cell, $font);
});
$world.query<lel::Cell, WideLabel>([this](auto, auto& cell, auto& text) {
text.init(cell, $font);
});
$world.query<lel::Cell, Sprite>([&](auto, auto &cell, auto &sprite) {
sprite.init(cell);
});
}
void UI::render(sf::RenderWindow& window) {
@ -94,6 +103,14 @@ namespace guecs {
window.draw(*text.text);
});
$world.query<WideLabel>([&](auto, auto& text) {
window.draw(*text.text);
});
$world.query<WideText>([&](auto, auto& text) {
window.draw(*text.text);
});
$world.query<Textual>([&](auto, auto& text) {
window.draw(*text.text);
});