From ba478157bd634e60469d8ca1091a69a8a614e1bd Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 28 Aug 2016 03:42:31 +0200 Subject: temp background --- menu.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'menu.lua') 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) -- cgit v1.1