mirror of
				https://github.com/inf112-v20/Fiasko.git
				synced 2025-10-31 01:33:43 +01:00 
			
		
		
		
	Tar hensyn til zoom-nivå når brettet blir flyttet med musen
This commit is contained in:
		| @@ -160,8 +160,8 @@ public class GameLauncher extends ApplicationAdapter implements InputProcessor { | |||||||
|         Vector2 diff = newTouch.cpy().sub(lastTouch); |         Vector2 diff = newTouch.cpy().sub(lastTouch); | ||||||
|         lastTouch = newTouch; |         lastTouch = newTouch; | ||||||
|         int[] positionChange = translateCoordinateAccountingForCameraRotation(diff.x, diff.y); |         int[] positionChange = translateCoordinateAccountingForCameraRotation(diff.x, diff.y); | ||||||
|         cameraX = positionChange[0]; |         cameraX = (int)(positionChange[0] * cameraZoom); | ||||||
|         cameraY = positionChange[1]; |         cameraY = (int)(positionChange[1] * cameraZoom); | ||||||
|         return true; |         return true; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user