1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-08 00:39:30 +02:00
ComfyFactorio/maps/tetris/unused.lua
2021-03-24 20:14:55 +01:00

17 lines
422 B
Lua

--luacheck: ignore
local function is_position_inside_playfield(position)
if position.x > playfield_area.right_bottom.x then
return false
end
if position.y > playfield_area.right_bottom.y then
return false
end
if position.x <= playfield_area.left_top.x then
return false
end
if position.y < playfield_area.left_top.y then
return false
end
return true
end