Too late.bartbes wrote:That was my plan! I had some great ideas...
![Joker :joker:](./images/smilies/ms-ysosrs.png)
Try it!bartbes wrote:I will create a superior version!
You mean scaling?Xoria wrote:lol my topic got hijacked. Umm, I didn't really catch how to change camera size, after declaring the table (camera = {} ) how do I change it with this? http://love2d.org/wiki/love.graphics.translate
Code: Select all
function love.draw()
love.graphics.translate(-love.graphics.getWidth()/2, -love.graphics.getHeight()/2)
love.graphics.scale(2, 2)
love.graphics.translate(love.graphics.getWidth()/2, love.graphics.getHeight()/2)
... code here ...
end
I do not understand your question. What do you want to do exactly? Perhaps it would help if you explained what the player should see.Xoria wrote:Interesting, but how can one just make the camera alone change size?
That's exactly what they've been talking about. The "camera" is just an abstract idea of what is being displayed in the viewport. What you do when you zoom in is to simply make everything bigger, so that not everything fits in the viewport. Zooming out is making everything smaller, so that you can see more stuff in the viewport.Xoria wrote:It's so basic, how can I change the scale of the camera?
If the camera gets big, what you see gets small, and vice versa. http://bryanheisey.com/blog/?p=1
To be more exact, it works like this:nevon wrote:That's exactly what they've been talking about. The "camera" is just an abstract idea of what is being displayed in the viewport. What you do when you zoom in is to simply make everything bigger, so that not everything fits in the viewport. Zooming out is making everything smaller, so that you can see more stuff in the viewport.Xoria wrote:It's so basic, how can I change the scale of the camera?
If the camera gets big, what you see gets small, and vice versa. http://bryanheisey.com/blog/?p=1
Code: Select all
camerasize = screensize / scale
Users browsing this forum: No registered users and 1 guest