1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-16 10:19:27 +02:00
RedMew/map_gen/maps/x_shape.lua
2019-01-31 20:15:41 -05:00

15 lines
291 B
Lua

--X shape map script --by Neko_Baron
--edit this
local tiles_wide = 172
---dont edit these
local tiles_half = tiles_wide * 0.5
return function(x, y)
local abs_x = math.abs(x)
local abs_y = math.abs(y)
return not (abs_x < abs_y - tiles_half or abs_x > abs_y + tiles_half)
end