Advertisement
Squalleze

Untitled

Apr 27th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. function newPuzzle()
  2. local _puzzle = {pieces = {}, clicks = 10}
  3. for x = 1, puzzle.w do
  4. _puzzle.pieces[x] = {}
  5. for y = 1, puzzle.h do
  6. _puzzle.pieces[x][y] = randomByRarity(ores) or false
  7. end
  8. end
  9. return _puzzle
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement