summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-08-28 03:42:31 +0200
committerAki <nthirtyone@gmail.com>2016-08-28 03:42:31 +0200
commitba478157bd634e60469d8ca1091a69a8a614e1bd (patch)
tree86ab6704efd7f414436e610bea14910d804b963f
parentab82b9f8ee76ef8327765ed59639c3f3c65fce8f (diff)
downloadroflnauts-ba478157bd634e60469d8ca1091a69a8a614e1bd.zip
roflnauts-ba478157bd634e60469d8ca1091a69a8a614e1bd.tar.gz
roflnauts-ba478157bd634e60469d8ca1091a69a8a614e1bd.tar.bz2
temp background
-rw-r--r--menu.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/menu.lua b/menu.lua
index 29f5b2a..bd04215 100644
--- a/menu.lua
+++ b/menu.lua
@@ -11,6 +11,7 @@ Menu = {
active = 1,
music,
sprite,
+ background,
quads = {
button = {
normal = love.graphics.newQuad(0, 0, 58,15, 80,130),
@@ -33,6 +34,7 @@ function Menu:new(name)
setmetatable(o, self)
self.__index = self
self.sprite = love.graphics.newImage("assets/menu.png")
+ self.background = love.graphics.newImage("assets/backgrounds/menu.png")
o.elements = {}
o:load(name)
o.music = Music:new("menu.ogg")
@@ -82,6 +84,7 @@ function Menu:update(dt)
end
function Menu:draw()
local scale = self.scale
+ love.graphics.draw(self.background, 0, 0, 0, scale, scale)
love.graphics.setFont(Font)
for _,element in pairs(self.elements) do
element:draw(scale)