1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00
RedMew/map_gen/shape/x_shape.lua
2018-11-21 08:42:39 -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