18 lines
558 B
Lua
18 lines
558 B
Lua
------------------------------------------------------------------------------
|
|
-- Module definitions
|
|
------------------------------------------------------------------------------
|
|
|
|
local collisions = {
|
|
-- Default setting values.
|
|
point_in_square = function(x, y, ox, oy, w, h)
|
|
return x >= ox and x <= ox + w and y >= oy and y <= oy + h
|
|
end,
|
|
}
|
|
|
|
|
|
------------------------------------------------------------------------------
|
|
-- Module return
|
|
------------------------------------------------------------------------------
|
|
|
|
return collisions
|