summary refs log tree commit diff stats
path: root/src/game.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-03-18 23:04:04 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2022-03-18 23:04:04 -0400
commitd1ec962c788286d0eca331ac33b3dd1867618ddb (patch)
tree75a69270a8e53b68b3e5c721651e63b70b268be2 /src/game.h
parent4e228fc4ea0189be7f28eba68d59b99841f91aab (diff)
downloadether-d1ec962c788286d0eca331ac33b3dd1867618ddb.tar.gz
ether-d1ec962c788286d0eca331ac33b3dd1867618ddb.tar.bz2
ether-d1ec962c788286d0eca331ac33b3dd1867618ddb.zip
fixed a lot of the zoom problems
still looks weird while moving
Diffstat (limited to 'src/game.h')
-rw-r--r--src/game.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game.h b/src/game.h index c75d43b..6e676ae 100644 --- a/src/game.h +++ b/src/game.h
@@ -82,12 +82,14 @@ public:
82 82
83 int maxZoom = INIT_ZOOM; 83 int maxZoom = INIT_ZOOM;
84 int curZoom = INIT_ZOOM; 84 int curZoom = INIT_ZOOM;
85 int oldZoom; 85 int oldZoom = INIT_ZOOM;
86 bool zooming = false; 86 bool zooming = false;
87 //int zoomProgress = 0; 87 //int zoomProgress = 0;
88 //int zoomLength; 88 //int zoomLength;
89 Interpolation zoomProgress; 89 Interpolation zoomProgress;
90 90
91 double getZoomBasis() const { return zooming ? std::max(curZoom, oldZoom) : curZoom; }
92
91 Input keystate; 93 Input keystate;
92 bool firstInput = false; 94 bool firstInput = false;
93 Input lastInput; 95 Input lastInput;