summary refs log tree commit diff stats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-09 19:39:30 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-09 19:39:30 -0500
commit0c2cd251fa0427b19f7c995bc7da7319d2ac80a5 (patch)
tree5ef74b3c50fa8bba3424f9e438d5fce61838c7df /src/main.cpp
parent60f10cf1c5e8b0610ebe12d11531030e6c241a42 (diff)
downloadtanetane-0c2cd251fa0427b19f7c995bc7da7319d2ac80a5.tar.gz
tanetane-0c2cd251fa0427b19f7c995bc7da7319d2ac80a5.tar.bz2
tanetane-0c2cd251fa0427b19f7c995bc7da7319d2ac80a5.zip
Maps can contain named points of interest called warps
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index b1fc373..62c81f3 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -26,7 +26,7 @@ void loop(Renderer& renderer) {
26 game.setMap(std::move(map)); 26 game.setMap(std::move(map));
27 27
28 int lucasSprite = game.emplaceSprite("lucas"); 28 int lucasSprite = game.emplaceSprite("lucas");
29 game.getSystem<TransformSystem>().initSprite(lucasSprite, {32, 32}); 29 game.getSystem<TransformSystem>().initSprite(lucasSprite, game.getMap().getWarpPoint("spawn"));
30 game.getSystem<TransformSystem>().setUpCollision(lucasSprite, {-8, -8}, {12, 8}); 30 game.getSystem<TransformSystem>().setUpCollision(lucasSprite, {-8, -8}, {12, 8});
31 game.getSystem<AnimationSystem>().initSprite(lucasSprite, "../res/sprites/lucas_anim.txt", renderer); 31 game.getSystem<AnimationSystem>().initSprite(lucasSprite, "../res/sprites/lucas_anim.txt", renderer);
32 game.getSprite(lucasSprite).controllable = true; 32 game.getSprite(lucasSprite).controllable = true;