togFox wrote: ↑Thu Feb 01, 2024 9:18 am
Is this the correct way to initial RS when I develop in 1920 x 1080 while allowing the user to resize to whatever they want?
The demo is 800 x 600 so just checking I got this bit right. Thanks.
I mean, there no "correct" way to initialize window, in fact, you can call it whenever you want, after all, res.setMode is just wrapper for https://love2d.org/wiki/love.window.setMode, which would immediately call res.resize to update all internals.
I think you might got math somewhere wrong
Current project: https://togfox.itch.io/hwarang
A card game that brings sword fighting to life. Simple to learn, hard to master. Learn when to advance, dodge, strike and counter. Learn how to strike without being struck. https://discord.gg/HeHgwE5nsZ
These things change the way things are drawn and if you're not careful, will interfere with RS.
Obviously.
Current project: https://togfox.itch.io/hwarang
A card game that brings sword fighting to life. Simple to learn, hard to master. Learn when to advance, dodge, strike and counter. Learn how to strike without being struck. https://discord.gg/HeHgwE5nsZ
These things change the way things are drawn and if you're not careful, will interfere with RS.
Obviously.
So are you was drawing ui by resetting scaling?
If so, you better off using love.graphics.pop/push combo to draw something inside rs.pop/push combo, or simple draw ui outside of this combo
Some scenes were using RS and some scenes were using RS and scale. Making sure the rs.pop, rs.push. love.graphics.scale and origin is called in the right sequence and being disciplined in the scope fixes it. Thanks!
Current project: https://togfox.itch.io/hwarang
A card game that brings sword fighting to life. Simple to learn, hard to master. Learn when to advance, dodge, strike and counter. Learn how to strike without being struck. https://discord.gg/HeHgwE5nsZ