Now have a full map and a mini map, but I think the mini map will stop rendering sometimes.

This commit is contained in:
Zed A. Shaw 2025-03-23 00:04:23 -04:00
parent 193d97eb48
commit 322797f787
15 changed files with 120 additions and 36 deletions

20
mini_map.hpp Normal file
View file

@ -0,0 +1,20 @@
#pragma once
#include "levelmanager.hpp"
#include "textures.hpp"
#include "guecs.hpp"
#include "tilemap.hpp"
namespace gui {
class MiniMapUI {
public:
guecs::WideText $map_grid;
guecs::UI $gui;
GameLevel $level;
shared_ptr<sf::Font> $font = nullptr;
MiniMapUI(GameLevel &level);
void init(guecs::UI& overlay);
void render(sf::RenderWindow &window);
void update_level(GameLevel &level);
};
}