-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.lua
41 lines (34 loc) · 1.28 KB
/
init.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
39
40
41
local path = (...)
local function relative_require(module)
return require(path .. "." .. module)
end
return {
--ecs
kernel = relative_require("ecs.kernel"),
entity = relative_require("ecs.entity"),
--base system code
base_system = relative_require("ecs.systems.base"),
--prefab systems
systems = {
event_system = relative_require("ecs.systems.event_system"),
behaviour_system = relative_require("ecs.systems.behaviour_system"),
beat_system = relative_require("ecs.systems.beat_system"),
sprite_system = relative_require("ecs.systems.sprite_system"),
animation_system = relative_require("ecs.systems.animation_system"),
text_system = relative_require("ecs.systems.text_system"),
},
--utility
frequency_counter = relative_require("util.frequency_counter"),
screenshake = relative_require("util.screenshake"),
screen_overlay = relative_require("util.screen_overlay"),
random_pool = relative_require("util.random_pool"),
crossfade = relative_require("util.crossfade"),
unique_mapping = relative_require("util.unique_mapping"),
profiler = relative_require("util.profiler"),
--input
keyboard = relative_require("input.keyboard"),
mouse = relative_require("input.mouse"),
gamepad = relative_require("input.gamepad"),
--important bits
main_loop = relative_require("main_loop"),
}