diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-13 20:49:20 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-13 20:49:20 +0100 |
commit | 171e12893048f29bddccf2de183a1dec2f0a00fa (patch) | |
tree | 81e3d37df99d5b68a2b274ef2bd21a0c3f8c2ca8 /src/game | |
parent | ab3e10a812ffdc89fc288bc965fa9d40459d2de8 (diff) |
Adjust zooming speed.
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/interface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/interface.cpp b/src/game/interface.cpp index c89cdad..854b620 100644 --- a/src/game/interface.cpp +++ b/src/game/interface.cpp @@ -29,7 +29,7 @@ void state_t::tick(double dt) { float view_scale; - view_scale = 3 * exp(camera.zoom * 0.3); + view_scale = 3 * exp(camera.zoom * 0.12); if (size.x > size.y) { view_size.y = view_scale; view_size.x = view_scale * size.x / size.y; @@ -94,8 +94,8 @@ void state_t::tick(double dt) camera.target_zoom -= event.mouseWheelScroll.delta; if (camera.target_zoom < 0) camera.target_zoom = 0; - if (camera.target_zoom > 11) - camera.target_zoom = 11; + if (camera.target_zoom > 17) + camera.target_zoom = 17; break; case sf::Event::KeyPressed: |