-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.lua
38 lines (27 loc) · 1.02 KB
/
main.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
local Gamestate = require 'libs.hump.gamestate'
require 'libs.batteries':export()
love.window.setMode(800, 600, {resizable=true})
love.graphics.setDefaultFilter('nearest', 'nearest')
-- Enable require without specifying 'src' in the beginning
love.filesystem.setRequirePath(love.filesystem.getRequirePath() .. ";src/?.lua")
-- -- Global declarations START -- --
Class = require 'libs.hump.class'
inspect = require 'libs.inspect'
mediaManager = require 'mediaManager'()
Concord = require 'libs.concord'
Vector = require 'libs.brinevector'
-- CONCORD CONFIG START --
-- Create global Concord aliases for ease of access
local assemblageUtil = require 'utils.assemblage'
ECS = {
c = Concord.components,
a = assemblageUtil.createAssemblageHierarchy("src/assemblages"),
s = {}
}
Concord.utils.loadNamespace("src/components")
Concord.utils.loadNamespace("src/systems", ECS.s)
-- CONCORD CONFIG END --
-- -- Global declarations END -- --
local mainMenu = require 'states.mainMenu'
Gamestate.registerEvents()
Gamestate.switch(mainMenu)