-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.lua
47 lines (39 loc) · 928 Bytes
/
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
39
40
41
42
43
44
45
46
47
package.path = package.path..";"..RL.GetBasePath().."libs/?.lua"
package.path = package.path..";"..RL.GetBasePath().."?.lua"
Util = require( "utillib" )
Vec2 = require( "vector2" )
Rect = require( "rectangle" )
Color = require( "color" )
-- Define global constants.
TILE_SIZE = 8
require( "scripts/input" )
require( "scripts/settings" )
require( "scripts/resources" )
require( "scripts/window" )
require( "scripts/game" )
require( "scripts/ui" )
require( "scripts/menu" )
require( "scripts/room" )
require( "scripts/camera" )
require( "scripts/sprite" )
require( "scripts/player" )
require( "scripts/entities" )
function RL.init()
RL.InitAudioDevice()
Settings:init()
Resources:init()
Window:init()
Menu:init()
end
function RL.update( delta )
Input:update()
Window:update( delta )
Game:update( delta )
Menu:update( delta )
end
function RL.draw()
Window:draw()
end
function RL.exit()
RL.CloseAudioDevice()
end