Closed airstruck closed 7 years ago
Just tried swapping 30log out with Middleclass; looks something like this:
local class = require 'middleclass'
BaseClass = class('BaseClass')
function BaseClass:initialize (...)
self:init(...)
end
function BaseClass:extend (name, proto)
local child = class(name, self)
if proto then
for k, v in pairs(proto) do child[k] = v end
end
return child
end
Could be useful if someone wants a particular class library badly enough, maybe for serialization or debugging.
extend
function conforming to 30log's API.Also updated preciseWithMovingPlayer demo just for testing purposes (none of the demos tested the files in /src; they weren't actually working due to a few typos).