-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.lua
More file actions
55 lines (49 loc) · 2.09 KB
/
conf.lua
File metadata and controls
55 lines (49 loc) · 2.09 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
SW = 1280
SH = 800
global = {}
global.debug = false
global.gameState = nil
global.gravity = 1500
global.debugString = ''
function global:setGameState(state)
if global.gameState then
global:removeGameState(global.gameState)
end
global:addGameState(state)
end
function global:addGameState(state)
global.gameState = state
require('states/'..state)
end
function global:removeGameState(state)
package.loaded['states/'..state] = nil
_G['states/'..state] = nil
end
function love.conf(t)
t.title = 'Platformer' -- The title of the window the game is in (string)
t.author = 'Brian Ellis' -- The author of the game (string)
t.url = nil -- The website of the game (string)
t.identity = nil -- The name of the save directory (string)
t.version = '0.8.0' -- The LÖVE version this game was made for (string)
t.console = false -- Attach a console (boolean, Windows only)
t.release = false -- Enable release mode (boolean)
t.screen.width = SW -- The window width (number)
t.screen.height = SH -- The window height (number)
t.screen.fullscreen = true -- Enable fullscreen (boolean)
t.screen.vsync = true -- Enable vertical sync (boolean)
t.screen.fsaa = 0 -- The number of FSAA-buffers (number)
t.modules.joystick = true -- Enable the joystick module (boolean)
t.modules.audio = true -- Enable the audio module (boolean)
t.modules.keyboard = true -- Enable the keyboard module (boolean)
t.modules.event = true -- Enable the event module (boolean)
t.modules.image = true -- Enable the image module (boolean)
t.modules.graphics = true -- Enable the graphics module (boolean)
t.modules.timer = true -- Enable the timer module (boolean)
t.modules.mouse = true -- Enable the mouse module (boolean)
t.modules.sound = true -- Enable the sound module (boolean)
t.modules.physics = true -- Enable the physics module (boolean)
end
function unrequire(m)
package.loaded[m] = nil
_G[m] = nil
end