Page 2 of 2

Re: Making a game for multiple resolutions

Posted: Sun Jan 31, 2016 10:54 pm
by zorg
Cameras and viewports can be implemented a myriad of ways, it's more engine than framework territory, and iirc this was already discussed in the next version feature request thread that i can't actually find now...

Then again, here are some libs that implement cameras:
https://github.com/kikito/gamera
https://github.com/vrld/hump
https://github.com/davisdude/Brady

Re: Making a game for multiple resolutions

Posted: Mon Feb 01, 2016 5:39 pm
by Calandriel
You can try PUSH. That's what I'm using on my current project.
Find it here:
viewtopic.php?f=5&t=80738

Re: Making a game for multiple resolutions

Posted: Tue Feb 02, 2016 12:52 am
by Kibita
zorg wrote:Cameras and viewports can be implemented a myriad of ways, it's more engine than framework territory, and iirc this was already discussed in the next version feature request thread that i can't actually find now...

Then again, here are some libs that implement cameras:
https://github.com/kikito/gamera
https://github.com/vrld/hump
https://github.com/davisdude/Brady
I tried to use Brady but in my project I got the error: libs/brady/Camera.lua:178: attempt to call field 'setStencil' (a nil value). I tried to see if I did something to my project, but it seems to be an error from the project.

Re: Making a game for multiple resolutions

Posted: Tue Feb 02, 2016 4:37 pm
by zorg
Kibita: I never used Brady, and i did not check the repo to see how it works, but the issue is with that in 0.10.0, [wiki]love.graphics.setStencil[/wiki] was removed/renamed; the library wasn't updated to be compatible with the current version, it seems.

Re: Making a game for multiple resolutions

Posted: Tue Feb 02, 2016 11:57 pm
by Kibita
zorg wrote:Kibita: I never used Brady, and i did not check the repo to see how it works, but the issue is with that in 0.10.0, [wiki]love.graphics.setStencil[/wiki] was removed/renamed; the library wasn't updated to be compatible with the current version, it seems.
Hmm, even for Push I got error: libs/push/push.lua:72: attempt to call method 'clear' (a nil value). Look like all of the libraries are outdated.
I wanna make a game for mobile, that's why I need a library that handle this multi resolution problem.