diff options
author | piernov <piernov@piernov.org> | 2014-05-12 13:00:01 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2014-05-12 13:00:01 +0200 |
commit | e72226dbf8f61dacc2fe4d18297807faa27b207f (patch) | |
tree | 82fe32b0e1b594c5c7241353ba1685d1f50818ee /Utils.lua | |
parent | 344b536979556aa2cfec0f9b16d6140e8fed9fe5 (diff) | |
download | Mastermind-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.lua | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |