aboutsummaryrefslogtreecommitdiffstats
path: root/Utils.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Utils.lua')
-rw-r--r--Utils.lua12
1 files changed, 10 insertions, 2 deletions
diff --git a/Utils.lua b/Utils.lua
index c811e1b..bbae94d 100644
--- a/Utils.lua
+++ b/Utils.lua
@@ -1,9 +1,17 @@
+--[[
+ Utils.lua
+ Used for unclassified functions
+ by piernov
+
+ Comment: a bit useless, but still a more convenient than nothing for Quickie's functions
+]]--
+
local Utils = {}
-function Utils.percentCoordinates(x, y)
+function Utils.percentCoordinates(x, y) -- Convert percentage to absolute coordinates
x = (x/100)*Screen.width
y = (y/100)*Screen.height
return x, y
end
-return Utils \ No newline at end of file
+return Utils