gamecore: load classic globally at start
This commit is contained in:
parent
be8845eaa4
commit
41a2eb0518
3 changed files with 2 additions and 3 deletions
|
@ -9,7 +9,6 @@ Gamecore use [Classic](https://github.com/rxi/classic/) as its base Object
|
||||||
To load gamecore, you basically need the following code.
|
To load gamecore, you basically need the following code.
|
||||||
|
|
||||||
````
|
````
|
||||||
Object = require "libs.classic"
|
|
||||||
Core = require "gamecore"
|
Core = require "gamecore"
|
||||||
|
|
||||||
function love.load()
|
function love.load()
|
||||||
|
|
|
@ -29,7 +29,8 @@ local cwd = (...):gsub('%.init$', '') .. "."
|
||||||
-- Load in the global namespace utilities that'll need to be reusable everywhere
|
-- Load in the global namespace utilities that'll need to be reusable everywhere
|
||||||
-- in the game
|
-- in the game
|
||||||
|
|
||||||
utils = require require(cwd .. "utils")
|
Object = require(cwd .. "libs.classic")
|
||||||
|
utils = require(cwd .. "utils")
|
||||||
|
|
||||||
local CoreSystem = Object:extend()
|
local CoreSystem = Object:extend()
|
||||||
|
|
||||||
|
|
1
main.lua
1
main.lua
|
@ -21,7 +21,6 @@
|
||||||
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.
|
||||||
]]
|
]]
|
||||||
|
|
||||||
Object = require "libs.classic"
|
|
||||||
Core = require "gamecore"
|
Core = require "gamecore"
|
||||||
|
|
||||||
function love.load()
|
function love.load()
|
||||||
|
|
Loading…
Reference in a new issue