I want to achieve the camera as in gif, just center on player + offset based on distance of mouse pointer from center of screen, can't quite get scaling and camera working together, right now just centering on player, will ad offset later.
If you run the game I provided camera works but the scale is for ants.
Uncommenting line 53
Code: Select all
love.graphics.setCanvas(canvas)
Code: Select all
camera:lookAt(player.x * scale, player.y * scale)
If you undo the changes above and instead set camera scale to scale in line 28
Code: Select all
camera = Camera(player.x,player.y, scale)
How to set it all up so both everything is scaled to crisp pixels and camera works?