25 lines
461 B
Lua
25 lines
461 B
Lua
-- breezefield: init.lua
|
|
--[[
|
|
implements Collider and World objects
|
|
Collider wraps the basic functionality of shape, fixture, and body
|
|
World wraps world, and provides automatic drawing simplified collisions
|
|
]]--
|
|
|
|
|
|
|
|
local bf = {}
|
|
|
|
local BASE = (...) .. "."
|
|
local Collider = require(BASE .. 'collider')
|
|
local World = require(BASE .. 'world')
|
|
|
|
|
|
function bf.newWorld(...)
|
|
return bf.World:new(...)
|
|
end
|
|
|
|
bf.Collider = Collider
|
|
bf.World = World
|
|
|
|
return bf
|