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 DebugSystem = Object:extend()
|
||||||
|
|
||||||
local lovebird = require("libs.lovebird")
|
local cwd = (...):gsub('%.debug$', '') .. "."
|
||||||
|
local lovebird = require(cwd .. "libs.lovebird")
|
||||||
|
|
||||||
function DebugSystem:new(controller, active)
|
function DebugSystem:new(controller, active)
|
||||||
self.controller = controller
|
self.controller = controller
|
||||||
|
|
14
init.lua
14
init.lua
|
@ -25,13 +25,15 @@
|
||||||
|
|
||||||
local CoreSystem = Object:extend()
|
local CoreSystem = Object:extend()
|
||||||
|
|
||||||
local DebugSystem = require "core.debug"
|
local cwd = (...):gsub('%.init$', '') .. "."
|
||||||
|
|
||||||
local Options = require "core.options"
|
local DebugSystem = require(cwd .. "debug")
|
||||||
local Input = require "core.input"
|
|
||||||
local Screen = require "core.screen"
|
local Options = require(cwd .. "options")
|
||||||
local Lang = require "core.lang"
|
local Input = require(cwd .. "input")
|
||||||
local SceneManager= require "core.scenemanager"
|
local Screen = require(cwd .. "screen")
|
||||||
|
local Lang = require(cwd .. "lang")
|
||||||
|
local SceneManager = require(cwd .. "scenemanager")
|
||||||
|
|
||||||
function CoreSystem:new()
|
function CoreSystem:new()
|
||||||
self.debug = DebugSystem(self)
|
self.debug = DebugSystem(self)
|
||||||
|
|
|
@ -23,7 +23,8 @@
|
||||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
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()
|
local Autotile = Object:extend()
|
||||||
|
|
||||||
function Autotile:new(filepath)
|
function Autotile:new(filepath)
|
||||||
|
|
|
@ -24,13 +24,15 @@
|
||||||
|
|
||||||
local Assets = Object:extend()
|
local Assets = Object:extend()
|
||||||
|
|
||||||
local Sprite = require "core.modules.assets.sprites"
|
local cwd = (...):gsub('%.init$', '') .. "."
|
||||||
local Font = require "core.modules.assets.fonts"
|
|
||||||
local ImageFont = require "core.modules.assets.imagefonts"
|
|
||||||
|
|
||||||
local Tileset = require "core.modules.assets.tileset"
|
local Sprite = require(cwd .. "sprites")
|
||||||
local Autotile = require "core.modules.assets.autotile"
|
local Font = require(cwd .. "fonts")
|
||||||
local Background = require "core.modules.assets.background"
|
local ImageFont = require(cwd .. "imagefonts")
|
||||||
|
|
||||||
|
local Tileset = require(cwd .. "tileset")
|
||||||
|
local Autotile = require(cwd .. "autotile")
|
||||||
|
local Background = require(cwd .. "background")
|
||||||
|
|
||||||
|
|
||||||
function Assets:new()
|
function Assets:new()
|
||||||
|
|
|
@ -24,8 +24,10 @@
|
||||||
]]
|
]]
|
||||||
|
|
||||||
local Sprite = Object:extend()
|
local Sprite = Object:extend()
|
||||||
local Animator = require("core.modules.assets.animator")
|
local cwd = (...):gsub('%.sprites$', '') .. "."
|
||||||
local Tileset = require("core.modules.assets.tileset")
|
|
||||||
|
local Animator = require(cwd .. "animator")
|
||||||
|
local Tileset = require(cwd .. "tileset")
|
||||||
|
|
||||||
function Sprite:new(filepath)
|
function Sprite:new(filepath)
|
||||||
self.tileset = Tileset(filepath)
|
self.tileset = Tileset(filepath)
|
||||||
|
|
|
@ -24,7 +24,8 @@
|
||||||
|
|
||||||
local OptionsManager = Object:extend()
|
local OptionsManager = Object:extend()
|
||||||
|
|
||||||
local binser = require "libs.binser"
|
local cwd = (...):gsub('%.options$', '') .. "."
|
||||||
|
local binser = require(cwd .. "libs.binser")
|
||||||
|
|
||||||
function OptionsManager:new()
|
function OptionsManager:new()
|
||||||
-- We begin by creating an empty data table before reading the data.
|
-- We begin by creating an empty data table before reading the data.
|
||||||
|
|
|
@ -24,7 +24,8 @@
|
||||||
|
|
||||||
local ScreenManager = Object:extend()
|
local ScreenManager = Object:extend()
|
||||||
|
|
||||||
local CScreen = require "libs.cscreen"
|
local cwd = (...):gsub('%.screen$', '') .. "."
|
||||||
|
local CScreen = require(cwd .. "libs.cscreen")
|
||||||
|
|
||||||
function ScreenManager:new(controller)
|
function ScreenManager:new(controller)
|
||||||
self.controller = controller
|
self.controller = controller
|
||||||
|
|
Loading…
Reference in a new issue