-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmain.lua
More file actions
47 lines (35 loc) · 1015 Bytes
/
Copy pathmain.lua
File metadata and controls
47 lines (35 loc) · 1015 Bytes
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
-- Max Downforce - main.lua
-- 2017-2021 Foppygames
-- =========================================================
-- includes
-- =========================================================
local states = require("modules.states")
-- =========================================================
-- constants
-- =========================================================
local VERSION = "1.2.1"
local TITLE = "Max Downforce"
-- =========================================================
-- functions
-- =========================================================
function love.load()
states.init(VERSION,TITLE)
end
function love.update(dt)
states.update(dt)
end
function love.keypressed(key)
states.updateKeyPressed(key)
end
function love.gamepadpressed(joystick,button)
states.updateGamepadPressed(joystick,button)
end
function love.joystickadded(joystick)
states.updateSelectedJoystick()
end
function love.joystickremoved(joystick)
states.updateSelectedJoystick()
end
function love.draw()
states.draw()
end