-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lua
More file actions
60 lines (48 loc) · 1.13 KB
/
main.lua
File metadata and controls
60 lines (48 loc) · 1.13 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
-- debug
lovebird = require 'lovebird'
lume = require 'lume'
-- data
Data = {}
Data.Font = require 'data.font'
Data.Background = require 'data.background'
-- library
Class = require '30log.30log'
Camera = require 'hump.camera'
State = require 'hump.gamestate'
Const = require 'const.const'
-- defines
require 'data.defines'
-- state
States = {}
States.Dummy = require 'state.dummy'
States.Sandbox = require 'state.sandbox'
-- Debug
Debug = require 'class.debug.debug'
-- class
Instance = require 'class.Instance.instance'
KeyManager = require 'class.keyManager'
JoystickManager = require 'class.joystickManager'
AnimationManager = require 'class.animationManager'
function love.load()
-- デバッグモードの有効化の際は true を渡すこと
debug = Debug(true)
State.registerEvents()
State.switch(States.Dummy)
end
function love.update(dt)
-- debug
-- lurker.update()
lovebird.update()
debug:update(dt)
-- debug
Instance:update(dt)
end
function love.draw()
-- debug
debug.free_camera:attach()
Instance:draw()
debug.free_camera:detach()
-- debug
debug:draw()
-- debug
end