src: don't hardcode gamecore location
This commit is contained in:
parent
f490e8c8a2
commit
a62f6010d4
7 changed files with 28 additions and 18 deletions
|
@ -23,7 +23,8 @@
|
|||
|
||||
local DebugSystem = Object:extend()
|
||||
|
||||
local lovebird = require("libs.lovebird")
|
||||
local cwd = (...):gsub('%.debug$', '') .. "."
|
||||
local lovebird = require(cwd .. "libs.lovebird")
|
||||
|
||||
function DebugSystem:new(controller, active)
|
||||
self.controller = controller
|
||||
|
|
14
init.lua
14
init.lua
|
@ -25,13 +25,15 @@
|
|||
|
||||
local CoreSystem = Object:extend()
|
||||
|
||||
local DebugSystem = require "core.debug"
|
||||
local cwd = (...):gsub('%.init$', '') .. "."
|
||||
|
||||
local Options = require "core.options"
|
||||
local Input = require "core.input"
|
||||
local Screen = require "core.screen"
|
||||
local Lang = require "core.lang"
|
||||
local SceneManager= require "core.scenemanager"
|
||||
local DebugSystem = require(cwd .. "debug")
|
||||
|
||||
local Options = require(cwd .. "options")
|
||||
local Input = require(cwd .. "input")
|
||||
local Screen = require(cwd .. "screen")
|
||||
local Lang = require(cwd .. "lang")
|
||||
local SceneManager = require(cwd .. "scenemanager")
|
||||
|
||||
function CoreSystem:new()
|
||||
self.debug = DebugSystem(self)
|
||||
|
|
|
@ -23,7 +23,8 @@
|
|||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
]]
|
||||
|
||||
local Tileset = require "core.modules.assets.tileset"
|
||||
local cwd = (...):gsub('%.autotile$', '') .. "."
|
||||
local Tileset = require(cwd .. "tileset")
|
||||
local Autotile = Object:extend()
|
||||
|
||||
function Autotile:new(filepath)
|
||||
|
|
|
@ -24,13 +24,15 @@
|
|||
|
||||
local Assets = Object:extend()
|
||||
|
||||
local Sprite = require "core.modules.assets.sprites"
|
||||
local Font = require "core.modules.assets.fonts"
|
||||
local ImageFont = require "core.modules.assets.imagefonts"
|
||||
local cwd = (...):gsub('%.init$', '') .. "."
|
||||
|
||||
local Tileset = require "core.modules.assets.tileset"
|
||||
local Autotile = require "core.modules.assets.autotile"
|
||||
local Background = require "core.modules.assets.background"
|
||||
local Sprite = require(cwd .. "sprites")
|
||||
local Font = require(cwd .. "fonts")
|
||||
local ImageFont = require(cwd .. "imagefonts")
|
||||
|
||||
local Tileset = require(cwd .. "tileset")
|
||||
local Autotile = require(cwd .. "autotile")
|
||||
local Background = require(cwd .. "background")
|
||||
|
||||
|
||||
function Assets:new()
|
||||
|
|
|
@ -24,8 +24,10 @@
|
|||
]]
|
||||
|
||||
local Sprite = Object:extend()
|
||||
local Animator = require("core.modules.assets.animator")
|
||||
local Tileset = require("core.modules.assets.tileset")
|
||||
local cwd = (...):gsub('%.sprites$', '') .. "."
|
||||
|
||||
local Animator = require(cwd .. "animator")
|
||||
local Tileset = require(cwd .. "tileset")
|
||||
|
||||
function Sprite:new(filepath)
|
||||
self.tileset = Tileset(filepath)
|
||||
|
|
|
@ -24,7 +24,8 @@
|
|||
|
||||
local OptionsManager = Object:extend()
|
||||
|
||||
local binser = require "libs.binser"
|
||||
local cwd = (...):gsub('%.options$', '') .. "."
|
||||
local binser = require(cwd .. "libs.binser")
|
||||
|
||||
function OptionsManager:new()
|
||||
-- We begin by creating an empty data table before reading the data.
|
||||
|
|
|
@ -24,7 +24,8 @@
|
|||
|
||||
local ScreenManager = Object:extend()
|
||||
|
||||
local CScreen = require "libs.cscreen"
|
||||
local cwd = (...):gsub('%.screen$', '') .. "."
|
||||
local CScreen = require(cwd .. "libs.cscreen")
|
||||
|
||||
function ScreenManager:new(controller)
|
||||
self.controller = controller
|
||||
|
|
Loading…
Reference in a new issue