Zooming in on specific point. (Translate and scale)

Hey There !

Do you mean you want the lines always I’m the middle of the screen ?

How about :


int cameraX , cameraY
cameraX = posX - width/2
cameraY = posY - width/2
translate(-cameraX,-cameraY)