diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-13 12:00:52 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-13 12:00:52 -0500 |
commit | e9602acecd1c5f63c6cf72a270a1bd09eba1e7e1 (patch) | |
tree | f4e61abab0dbb09b701dee7c2da47f1e18130ad7 | |
parent | 59dfd3da4d3e5d4a368a664c51c22bbdc8ff2ca4 (diff) | |
download | tanetane-e9602acecd1c5f63c6cf72a270a1bd09eba1e7e1.tar.gz tanetane-e9602acecd1c5f63c6cf72a270a1bd09eba1e7e1.tar.bz2 tanetane-e9602acecd1c5f63c6cf72a270a1bd09eba1e7e1.zip |
Player is a bit lower on screen now
-rw-r--r-- | src/camera_system.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/camera_system.cpp b/src/camera_system.cpp index 991d096..a6e8fca 100644 --- a/src/camera_system.cpp +++ b/src/camera_system.cpp | |||
@@ -9,7 +9,7 @@ void CameraSystem::tick(double dt) { | |||
9 | const Map& map = game_.getMap(); | 9 | const Map& map = game_.getMap(); |
10 | vec2i mapBounds = map.getMapSize() * map.getTileSize(); | 10 | vec2i mapBounds = map.getMapSize() * map.getTileSize(); |
11 | 11 | ||
12 | pos_ = follow.loc - (fov_ / 2); | 12 | pos_ = follow.loc - vec2i{0, 16} - (fov_ / 2); |
13 | 13 | ||
14 | if (pos_.x() < 0) { | 14 | if (pos_.x() < 0) { |
15 | pos_.x() = 0; | 15 | pos_.x() = 0; |