From 7ae446b661c47b41ed38d7f88b8f54416575e47f Mon Sep 17 00:00:00 2001 From: piernov Date: Wed, 16 Apr 2014 22:59:56 +0200 Subject: Split file + Working Solo mode : Add hints + Disallow multiple identical colors in same line + Correctly randomize answer --- Utils.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Utils.lua (limited to 'Utils.lua') 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 -- cgit v1.2.3-54-g00ecf