kikito / gamera

A camera system for LÖVE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handling screen size changes?

ravener opened this issue · comments

Shouldn't there be like a cam:resize(w, h) method to be called in love.resize for screen size changes?

This specifically applies to Android I'd say because I notice that in love.load I have a smaller size given and then right after love.resize is called with the correct size, but since most games and all prefer initialization in love.load the end result is everything is working with smaller screen size than actually is. Would be good to have a function to just call in the resize method and keep everything updated.

Actually ignore the Android part, that one seems to be a bug love2d/love-android#233

But still what if the window is resizable in desktop? How would you ensure the camera is updated.

Does cam:setWindow doesn't work for you?

whoops, my bad, I overlooked this, yeah that works perfectly fine.