cehrensperger / SystemicProject

0 stars 1 forks source link

Edit the findScreenCenter method in camera #3

Open cehrensperger opened 4 years ago

cehrensperger commented 4 years ago

-The method needs to check if the player is at the world border or not --If the player is not the screen center should be the player position (Main.getPlayer.getPosX/Y();) --if the player is at any of the world borders set the center to half the screen width (getWidth/Height() / 2;) away from that border. ---World border can be found from Tile.getAllTiles 2d array, get both lengths from that array and multiply them by tile width (Tile.width)