Level traversal works better now, compass is accurate, and direction is maintained when you traverse.
This commit is contained in:
parent
b75a2b8c31
commit
14c7f660de
11 changed files with 35 additions and 16 deletions
|
@ -23,7 +23,7 @@ namespace textures {
|
|||
auto sprite = make_shared<sf::Sprite>(*texture);
|
||||
|
||||
string name = el.key();
|
||||
TMGR.sprite_textures[name] = {sprite, texture};
|
||||
TMGR.sprite_textures.try_emplace(name, name, sprite, texture);
|
||||
}
|
||||
|
||||
TMGR.floor = load_image(assets["sprites"]["floor"]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue