Skip to content

Instantly share code, notes, and snippets.

View Codimale's full-sized avatar

Filippo De Angelis Codimale

  • Rome, Italy
View GitHub Profile
@Codimale
Codimale / FreeRes.lua
Last active November 27, 2016 05:27
An easy way to resize your game.
--[[
FreeRes - An easy way to resize your game.
FreeRes is a library that makes adding multiple aspect ratio support to your game
easily.
It's been created to fill the hole that TLfres left after it became obsolete.
Because of this its methods use the same names.
]]--
FreeRes = {} -- namespace
local currentWidth, currentHeight, originalWidth, originalHeight, scale, scaleMultiplier, letterWidth, letterHeight, xLetter, yLetter