15 lines
276 B
Lua
15 lines
276 B
Lua
function col_detect(object, display)
|
|
if not (object.x >= -1 and
|
|
object.x <= (display.width - object.width)) then
|
|
return false
|
|
end
|
|
|
|
if not (object.y >= -1 and
|
|
object.y <= (display.height - object.height)) then
|
|
return false
|
|
end
|
|
|
|
return true
|
|
end
|
|
|