aboutsummaryrefslogtreecommitdiff
path: root/panel.lua
diff options
context:
space:
mode:
authorChris B <1029chris@gmail.com>2016-02-20 19:03:59 -0800
committerChris B <1029chris@gmail.com>2016-02-20 19:04:07 -0800
commit46ee889cf448e200e7325ff9aefc2197c560ec22 (patch)
tree1687bc0a71bdf523c289466da6e07f739e8818d5 /panel.lua
parent63e7108b5378f02e37a2298ad2fc3ac0b5261cfe (diff)
Allowed game to be any resolution and still work
Diffstat (limited to 'panel.lua')
-rw-r--r--panel.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/panel.lua b/panel.lua
index d1eb5f7..182b5ab 100644
--- a/panel.lua
+++ b/panel.lua
@@ -1,4 +1,8 @@
function drawStart()
+ panel.width = love.graphics.getWidth( )
+ panel.y = love.graphics.getHeight()
+ panel.y = panel.y - panel.thick
+ panel.s.y = panel.y + 5
love.graphics.setColor(192, 192, 192)
love.graphics.rectangle("fill", panel.x, panel.y, panel.width, panel.height)
love.graphics.setColor(220, 220, 220)