Do something along the lines of this, it's similar to my camera script in Guvi.
Code: Select all
images={} --{x=x,y=y,img=image}
camera=vector4(0,0,1,0)
function love.draw()
love.graphics.push()
love.graphics.translate(camera.x,camera.y)
love.graphics.scale(camera.z)
love.graphics.rotate(camera.w)
for _,v in pairs(images) do
love.graphics.draw(v.img,v.x,v.y,0,camera.z,camera.z)
end
love.graphics.pop()
end