diff options
author | Aki <nthirtyone@gmail.com> | 2016-08-28 03:42:31 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-08-28 03:42:31 +0200 |
commit | ba478157bd634e60469d8ca1091a69a8a614e1bd (patch) | |
tree | 86ab6704efd7f414436e610bea14910d804b963f | |
parent | ab82b9f8ee76ef8327765ed59639c3f3c65fce8f (diff) | |
download | roflnauts-ba478157bd634e60469d8ca1091a69a8a614e1bd.zip roflnauts-ba478157bd634e60469d8ca1091a69a8a614e1bd.tar.gz roflnauts-ba478157bd634e60469d8ca1091a69a8a614e1bd.tar.bz2 |
temp background
-rw-r--r-- | menu.lua | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |