summary refs log tree commit diff stats
path: root/src/game.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-03-14 16:21:50 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-03-14 16:21:50 -0400
commit6cd202153bb61e14f9968845c43ca966ceab1e05 (patch)
treeeb1b445ef5ae0c04da3a8c18566cc91dc74bb2ff /src/game.cpp
parent44324ba5d6cac01048cc5cbecbff255ee56f2fc0 (diff)
downloadtherapy-6cd202153bb61e14f9968845c43ca966ceab1e05.tar.gz
therapy-6cd202153bb61e14f9968845c43ca966ceab1e05.tar.bz2
therapy-6cd202153bb61e14f9968845c43ca966ceab1e05.zip
Removed explicit map loading from Game since maps load each other now
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)