2023-11-21 10:19:56 +00:00
|
|
|
on_area = function(s, x,y)
|
2023-11-21 10:46:55 +00:00
|
|
|
if s.x == nil then return end
|
2023-11-21 10:19:56 +00:00
|
|
|
if x < s.x then return end
|
|
|
|
if x > s.x+s.w then return end
|
|
|
|
if y < s.y then return end
|
|
|
|
if y > s.y+s.h then return end
|
|
|
|
return true
|
|
|
|
end
|