Implemented touch/scrollwheel zooming, fixed many Android bugs

This commit is contained in:
Anuken
2017-09-21 22:10:09 -04:00
parent f68de4d69f
commit 41c6f90ca3
14 changed files with 96 additions and 69 deletions

View File

@@ -68,7 +68,8 @@ public class Renderer{
Draw.begin();
Draw.reset();
int rangex = control.rangex, rangey = control.rangey;
int rangex = (int) (camera.viewportWidth * camera.zoom / tilesize / 2)+2;
int rangey = (int) (camera.viewportHeight * camera.zoom / tilesize / 2)+2;
boolean noshadows = Settings.getBool("noshadows");