Advertisement
TheGameBoy_95

Untitled

May 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. screenResolution = {
  2. ["0,5"] = {{15,36,57,79,100,121,143,164},{10,24,38,52,67,81}},
  3. ["1"] = {{7,18,29,39,50,61,71,82},{5,12,19,26,33,40}},
  4. ["1,5"] = {{5,12,19,26,33,40,48,55},{3,8,13,17,22,27}},
  5. ["2"] = {{4,9,14,20,25,30,36,41},{2,6,10,13,17,20}},
  6. ["2,5"] = {{3,7,11,16,20,24,29,33},{2,5,8,10,13,16}},
  7. ["3"] = {{2,6,10,13,17,20,24,27},{2,4,6,9,11,13}},
  8. ["3,5"] = {{2,5,8,11,14,17,20,23},{1,3,5,7,10,12}},
  9. ["4"] = {{2,5,7,10,13,15,18,21},{1,3,5,7,8,10}},
  10. ["4,5"] = {{2,4,6,9,11,13,16,18},{1,3,4,6,7,9}},
  11. ["5"] = {{1,4,6,8,10,12,14,16},{1,2,4,5,7,8}},
  12. }
  13.  
  14. local function getMonSize(x,y,scale)
  15. return screenResolution[scale][1][x],screenResolution[scale][2][y]
  16. end
  17. xValue, yValue = getMonSize(5,3,"1,5")
  18. --Note: remember to put the quote on the scale value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement