aboutsummaryrefslogtreecommitdiffstats
path: root/Utils.lua
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2014-05-12 13:00:01 +0200
committerpiernov <piernov@piernov.org>2014-05-12 13:00:01 +0200
commite72226dbf8f61dacc2fe4d18297807faa27b207f (patch)
tree82fe32b0e1b594c5c7241353ba1685d1f50818ee /Utils.lua
parent344b536979556aa2cfec0f9b16d6140e8fed9fe5 (diff)
downloadMastermind-e72226dbf8f61dacc2fe4d18297807faa27b207f.tar.gz
Mastermind-e72226dbf8f61dacc2fe4d18297807faa27b207f.tar.bz2
Mastermind-e72226dbf8f61dacc2fe4d18297807faa27b207f.tar.xz
Mastermind-e72226dbf8f61dacc2fe4d18297807faa27b207f.zip
Multiplayer mode + various improvement
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