mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-10 00:43:27 +02:00
7 lines
339 B
Lua
7 lines
339 B
Lua
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 |