Display camera on map + right-click to pan

This commit is contained in:
Anuken
2023-04-15 14:39:41 -04:00
parent e8fbfe536e
commit 4ae8a51676
4 changed files with 55 additions and 12 deletions

View File

@@ -1482,6 +1482,11 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
return World.toTile(vec.y);
}
/** Forces the camera to a position and enables panning on desktop. */
public void panCamera(Vec2 position){
camera.position.set(position);
}
public boolean selectedBlock(){
return isPlacing();
}