diff options
Diffstat (limited to 'Utils.lua')
-rw-r--r-- | Utils.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Utils.lua b/Utils.lua new file mode 100644 index 0000000..c811e1b --- /dev/null +++ b/Utils.lua @@ -0,0 +1,9 @@ +local Utils = {} + +function Utils.percentCoordinates(x, y) + x = (x/100)*Screen.width + y = (y/100)*Screen.height + return x, y +end + +return Utils
\ No newline at end of file |