Now have a full map and a mini map, but I think the mini map will stop rendering sometimes.
This commit is contained in:
parent
193d97eb48
commit
322797f787
15 changed files with 120 additions and 36 deletions
20
mini_map.hpp
Normal file
20
mini_map.hpp
Normal 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);
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue