diff --git a/event.lua b/event.lua index 7265fe4..5dbd497 100644 --- a/event.lua +++ b/event.lua @@ -1,8 +1,7 @@ -- abstract.event -local abstract = require((...):match("^(.-abstract)%.")) -local input = abstract.input -local time = abstract.time -local scene = abstract.scene +local input = require((...):match("^(.-abstract)%.")..".input") +local time = require((...):match("^(.-abstract)%.")..".time") +local scene = require((...):match("^(.-abstract)%.")..".scene") --- The events: callback functions that will be called when something interesting occurs. -- Theses are expected to be redefined in the game. diff --git a/input.lua b/input.lua index 4b0c27c..dc5890c 100644 --- a/input.lua +++ b/input.lua @@ -1,6 +1,6 @@ -- abstract.input local abstract = require((...):match("^(.-abstract)%.")) -local draw = abstract.draw +local draw = require((...):match("^(.-abstract)%.")..".draw") --- Used to store inputs which were updated this frame -- { Input: true, ... } diff --git a/scene.lua b/scene.lua index 3e70f1c..1e9c39e 100644 --- a/scene.lua +++ b/scene.lua @@ -1,6 +1,5 @@ -- abstract.scene -local abstract = require((...):match("^(.-abstract)%.")) -local time = abstract.time +local time = require((...):match("^(.-abstract)%.")..".time") --- Returns the file path of the given module name. local function getPath(modname) diff --git a/time.lua b/time.lua index 5d2184b..b3812c8 100644 --- a/time.lua +++ b/time.lua @@ -1,5 +1,4 @@ -- abstract.time -local abstract = require((...):match("^(.-abstract)%.")) local ease = require((...):match("^(.-abstract)%.")..".lib.easing") --- Time related functions