mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
15 lines
291 B
Lua
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
|