mirror of
				https://github.com/Klagarge/PokeHES.git
				synced 2025-10-31 03:39:16 +00:00 
			
		
		
		
	switch screen
This commit is contained in:
		| @@ -79,8 +79,13 @@ public class ScreenMap extends RenderingScreen{ | ||||
|          | ||||
| 		 | ||||
| 		// Render the tileMap | ||||
|         g.zoom(zoom); | ||||
|         g.moveCamera(player.getPosition().x, player.getPosition().y, width * tileWidth, height * tileHeight); | ||||
|         try { | ||||
|             g.zoom(zoom); | ||||
|             g.moveCamera(player.getPosition().x, player.getPosition().y, width * tileWidth, height * tileHeight);    | ||||
|         } catch (Exception e) { | ||||
|             //TODO: handle exception | ||||
|         } | ||||
|  | ||||
| 		tMapRenderer.get(map).setView(g.getCamera()); | ||||
| 		tMapRenderer.get(map).render(); | ||||
|          | ||||
|   | ||||
		Reference in New Issue
	
	Block a user