-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui.lua
24 lines (21 loc) · 996 Bytes
/
gui.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
gui = {}
gui.enabled = true
function gui.load()
gui.images = {}
gui.images.hp = love.graphics.newImage("images/gui/bar_hp_mp.png")
gui.images.test = love.graphics.newImage("images/gui/confirm_bg.png")
end
function gui.draw()
if gui.enabled then
love.graphics.setColor(255, 255, 255, 255)
love.graphics.print("FPS: "..love.timer.getFPS(), camera.x + screen.width - 40, camera.y + 4)
love.graphics.draw(gui.images.hp, camera.x + 2, camera.y + 1)
love.graphics.draw(gui.images.test, camera.x + 2, camera.y + screen.height - 66)
love.graphics.setColor(0, 0, 0, 255)
love.graphics.print("Skeleton: HELLO", camera.x + 12 + 1, camera.y + screen.height - 55 +1)
love.graphics.print("Princess: Aahh!", camera.x + 12 + 1, camera.y + screen.height - 45 +1)
love.graphics.setColor(255, 255, 255, 255)
love.graphics.print("Skeleton: HELLO", camera.x + 12, camera.y + screen.height - 55)
love.graphics.print("Princess: Aahh!", camera.x + 12, camera.y + screen.height - 45)
end
end