Scäle library is finished
Posted: Sun Mar 13, 2011 10:51 pm
I made a topic about this a while ago, but it's pretty useless. I decided to finish the library, and it turns out there wasn't much left to do.
Scäle is a library that replaces the love.graphics functions with functions that keep the correct aspect ratio of the graphics no matter what the resolution is. Objects are the same distance from the center of the screen no matter what the horizontal resolution is, and they zoom in or out based on vertical resolution. This is useful for allowing games to run in multiple (and widescreen) resolutions.
To use this library, replace love.graphics functions with Scäle's counterparts and place everything where you would want it on an 800x600 window. Currently scale_circle, scale_rectangle, scale_draw, scale_line, scale_point, scale_polygon, and scale_triangle are included.
Download it here: http://tesselode.110mb.com/files/love/scale.lua
If anyone has an idea of how to scale fonts, please let me know. Also, if anyone can format the code so that everything is spaced out nicely, that would be nice too.
Scäle is a library that replaces the love.graphics functions with functions that keep the correct aspect ratio of the graphics no matter what the resolution is. Objects are the same distance from the center of the screen no matter what the horizontal resolution is, and they zoom in or out based on vertical resolution. This is useful for allowing games to run in multiple (and widescreen) resolutions.
To use this library, replace love.graphics functions with Scäle's counterparts and place everything where you would want it on an 800x600 window. Currently scale_circle, scale_rectangle, scale_draw, scale_line, scale_point, scale_polygon, and scale_triangle are included.
Download it here: http://tesselode.110mb.com/files/love/scale.lua
If anyone has an idea of how to scale fonts, please let me know. Also, if anyone can format the code so that everything is spaced out nicely, that would be nice too.