summary refs log tree commit diff stats
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index 7ec4460..1ff3f4f 100644 --- a/src/game.cpp +++ b/src/game.cpp
@@ -19,9 +19,10 @@ Game::Game()
19 auto player_anim = std::make_shared<PlayerSpriteComponent>(); 19 auto player_anim = std::make_shared<PlayerSpriteComponent>();
20 player->addComponent(player_anim); 20 player->addComponent(player_anim);
21 21
22 save = {&m, player->position}; 22 Map& startingMap = Map::getNamedMap("embarass");
23 save = {&startingMap, player->position};
23 24
24 loadMap(m); 25 loadMap(startingMap);
25} 26}
26 27
27void key_callback(GLFWwindow* window, int key, int, int action, int) 28void key_callback(GLFWwindow* window, int key, int, int action, int)