diff --git a/gamecore/modules/world/actors/actor2D.lua b/gamecore/modules/world/actors/actor2D.lua index 5211215..f987bad 100644 --- a/gamecore/modules/world/actors/actor2D.lua +++ b/gamecore/modules/world/actors/actor2D.lua @@ -8,9 +8,14 @@ function Actor2D:new(world, type, x, y, w, h) self.h = h or 0 self.type = type or "" + self:initKeys() self:register() end +function Actor2D:initKeys() + self.keys = core.input.fakekeys +end + function Actor2D:register() self.world:registerActor(self) end