modules/world: derive the Actor2D from the base actor
This commit is contained in:
parent
351b2a970a
commit
1b5a2e9c6e
1 changed files with 3 additions and 3 deletions
|
@ -23,16 +23,16 @@
|
|||
]]
|
||||
|
||||
local cwd = (...):gsub('%.actor2D$', '') .. "."
|
||||
local BaseActor = require(cwd .. "baseactor")
|
||||
local Actor2D = BaseActor:extend()
|
||||
|
||||
local Actor2D = Object:extend()
|
||||
local Timer = require(cwd .. "utils.timer")
|
||||
|
||||
-- INIT FUNCTIONS
|
||||
-- Initialise the actor and its base functions
|
||||
|
||||
function Actor2D:new(world, type, x, y, w, h, isSolid)
|
||||
self.type = type or ""
|
||||
|
||||
Actor2D.super.new(self, world, type)
|
||||
self:setManagers(world)
|
||||
self:initPhysics(x, y, w, h, isSolid)
|
||||
|
||||
|
|
Loading…
Reference in a new issue