-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.lua
More file actions
55 lines (26 loc) · 824 Bytes
/
game.lua
File metadata and controls
55 lines (26 loc) · 824 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
48
49
50
51
52
53
54
55
local Game = {}
local Bigfont = love.graphics.newFont("fonts/bebasneueregular.ttf", 140 / 1280 * love.graphics.getWidth())
local Mediumfont = love.graphics.newFont("fonts/bebasneueregular.ttf", 60)
local Smallfont = love.graphics.newFont("fonts/bebasneueregular.ttf", 20)
local button = require("button")
local sett = require("settings")
local animation = require("animation")
local mousex, mousey
function Game.load()
gamestate = "game"
player_animation = animation.new(love.graphics.newImage("images/volt_run.png"), 163, 211,0.5)
end
function Game.update(dt)
mousex, mousey = love.mouse.getPosition()
animation.update(dt)
end
function Game.draw()
--**BACKGROUND**--
--**BACKGROUND**--
animation.draw()
end
function settings()
gamestate = "settings"
sett.load()
end
return Game