Super jank prototype of my idea but I am rendering multiple characters per cell to give the effect of a more complex character. Now to make this a data setup so it's easy to make characters. Also, probably have little add ons to show things like weapons equiped, etc.
This commit is contained in:
parent
31c86fa2b3
commit
9f1e9717a0
3 changed files with 39 additions and 11 deletions
3
gui.hpp
3
gui.hpp
|
@ -50,6 +50,7 @@ class GUI {
|
|||
Screen $screen;
|
||||
Screen $map_screen;
|
||||
DinkyECS::World $world;
|
||||
sf::Texture $font_texture;
|
||||
std::unordered_map<wchar_t, sf::Sprite> $sprites;
|
||||
|
||||
public:
|
||||
|
@ -66,7 +67,7 @@ public:
|
|||
void shake();
|
||||
void configure_world();
|
||||
void run_systems();
|
||||
sf::Sprite get_text_sprite(wchar_t tile);
|
||||
sf::Sprite &get_text_sprite(wchar_t tile);
|
||||
|
||||
int main();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue