1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-10 00:43:27 +02:00
ComfyFactorio/maps/tetris/unused.lua

17 lines
422 B
Lua
Raw Normal View History

2021-03-24 21:14:55 +02:00
--luacheck: ignore
2019-08-26 21:10:30 +02:00
local function is_position_inside_playfield(position)
2021-03-24 17:46:00 +02:00
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