7 lines
163 B
Plaintext
7 lines
163 B
Plaintext
|
on_area = function(s, x,y)
|
||
|
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
|