gamecore: load classic globally at start

This commit is contained in:
Kazhnuz 2019-03-16 13:15:25 +01:00
parent be8845eaa4
commit 41a2eb0518
3 changed files with 2 additions and 3 deletions

View file

@ -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()

View file

@ -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()

View file

@ -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()