Template:Fragoria Map
From FragoriaWiki
(Difference between revisions)
Line 58: | Line 58: | ||
// repeat across y-axis (vertically) | // repeat across y-axis (vertically) | ||
- | + | if (y < 0 || y >= tileRange) { | |
- | + | y = (y % tileRange + tileRange) % tileRange; | |
- | + | } | |
// repeat across x-axis | // repeat across x-axis | ||
- | + | if (x < 0 || x >= tileRange) { | |
- | + | x = (x % tileRange + tileRange) % tileRange; | |
- | + | } | |
return { | return { |
Revision as of 16:22, 3 April 2015