love:mike moved function into it's own library; moved libs to lib folder
This commit is contained in:
14
love/mike/lib/functions.lua
Normal file
14
love/mike/lib/functions.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user