Aspect Scaling [trash]
Aspect Scaling [trash]
i still thinking about my ways to manage how exactly i want to develop that library, so i will trash that thread, for now, and publish that shit in that way, with that i comfortable
Last edited by GVovkiv on Thu Dec 30, 2021 6:55 pm, edited 5 times in total.
Re: Yet Another Scale Lib
screen resolutions are my number one hate. Will definitely check this out. 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
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
Re: Yet Another Scale Lib
Your documentation lists getBar1() and getBar2() but I don't see these defined in the code.
Re: Yet Another Scale Lib
yeah
fixed, thanks
(maybe i should learn how to properly document code, yeah)
Re: Aspect Scaling
Rewrited that library, based on kikito's guidelines
Functional the same
Functional the same
Re: Aspect Scaling
1.1 update: https://gist.github.com/Vovkiv/f234b4c9 ... ce8db37be8
* Little code refactoring
* Added functions a bunch of functions, such as:
toGame, toScreen to translate coordinates from scaled state to unscaled
getGame, getWindow and other shortcuts
added little better demo to demonstrate (https://gist.github.com/Vovkiv/c1b3216a ... d571a35cc8) how that functions may be used
and, uh, after refactoring, i found some willing, to rewrite that library with new use vector, such as:
provide more out-of-box features, such as: conversation mouse coordinates on library side, not by user; more functions related to translation in-between coordinates and so on?
provide more features related to scaling and working with window at general: add several scaling methods, such as Aspect Scaling (like already here), stretching scaling, maybe some """pixel-perfect""" to provide better experience for games with pixel graphics; integrate functionality of viewtopic.php?p=242801#p242801; provide functions to make fonts scaling much easer; functions to deal with ui proper scaling; add support for much easer integration for: shaders, scrolling/camera
Does anyone interested in that?
* Little code refactoring
* Added functions a bunch of functions, such as:
toGame, toScreen to translate coordinates from scaled state to unscaled
getGame, getWindow and other shortcuts
added little better demo to demonstrate (https://gist.github.com/Vovkiv/c1b3216a ... d571a35cc8) how that functions may be used
and, uh, after refactoring, i found some willing, to rewrite that library with new use vector, such as:
provide more out-of-box features, such as: conversation mouse coordinates on library side, not by user; more functions related to translation in-between coordinates and so on?
provide more features related to scaling and working with window at general: add several scaling methods, such as Aspect Scaling (like already here), stretching scaling, maybe some """pixel-perfect""" to provide better experience for games with pixel graphics; integrate functionality of viewtopic.php?p=242801#p242801; provide functions to make fonts scaling much easer; functions to deal with ui proper scaling; add support for much easer integration for: shaders, scrolling/camera
Does anyone interested in that?
Re: Aspect Scaling
Found a bug online 105:
should be
The first aspect.a should be aspect.r. This will let the borders be the correct colour.
Code: Select all
love.graphics.setColor(aspect.a, aspect.g, aspect.b, aspect.a)
Code: Select all
love.graphics.setColor(aspect.r, aspect.g, aspect.b, aspect.a)
The first aspect.a should be aspect.r. This will let the borders be the correct colour.
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
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
Re: Aspect Scaling
Oh, sorry for inconvenienttogFox wrote: ↑Mon Dec 20, 2021 11:11 pm Found a bug online 105:
should beCode: Select all
love.graphics.setColor(aspect.a, aspect.g, aspect.b, aspect.a)
Code: Select all
love.graphics.setColor(aspect.r, aspect.g, aspect.b, aspect.a)
The first aspect.a should be aspect.r. This will let the borders be the correct colour.
Fixed
Re: Aspect Scaling
Thank you for providing something that works well.
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
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
Re: Aspect Scaling
In next week or two, there will be major update to library
Hurray...
Hurray...
Who is online
Users browsing this forum: Ahrefs [Bot] and 5 guests