diff options
| author | 1029chris <1029chris@gmail.com> | 2016-06-09 13:50:25 -0700 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2016-06-09 13:50:25 -0700 |
| commit | e8e4af62cad224bdb028ffcf730d7c5c8c2b7482 (patch) | |
| tree | a1886853deb2606327d4a9c63ce1e97eabd81cc5 | |
| parent | 7b0bc171d659ff4a0dddc724860fdd09f42b08b3 (diff) | |
Changed some variables
sys.width and sys.height removed
love.graphics.getHeight changed to sys.h, same with width
| -rw-r--r-- | main.lua | 2 | ||||
| -rw-r--r-- | panel.lua | 6 | ||||
| -rw-r--r-- | var.lua | 6 |
3 files changed, 6 insertions, 8 deletions
@@ -25,7 +25,7 @@ function love.update(dt) sys.s = 60/fps sys.w = love.graphics.getWidth() sys.h = love.graphics.getHeight() - minim = love.graphics.getHeight()+10 + minim = sys.h+10 sys.mouse.x = love.mouse.getX() sys.mouse.y = love.mouse.getY() if love.keyboard.isDown("escape") == true then @@ -24,8 +24,8 @@ function drawPanelButton(id) end end function drawStart() - panel.width = love.graphics.getWidth() - panel.y = love.graphics.getHeight() + panel.width = sys.w + panel.y = sys.h panel.y = panel.y - panel.thick panel.s.y = panel.y + 5 love.graphics.setColor(colors.win.normal) @@ -125,7 +125,7 @@ function drawMenuItems(id) love.graphics.setColor(colors.win.normal) end function drawMenu() - start.y = love.graphics.getHeight() + start.y = sys.h start.y = start.y-30-350+2 love.graphics.setCanvas(start.cvs) love.graphics.setColor(192, 192, 192) @@ -40,7 +40,7 @@ function loadVar() panel.thick = 30 panel.x = 0 panel.y = 600-panel.thick - panel.width = sys.width + panel.width = sys.w panel.height = panel.thick panel.s = {} panel.s.x = panel.x + 5 @@ -70,7 +70,7 @@ function loadVar() end winOpen = true winHover = false - minim = love.graphics.getHeight()+10 + minim = sys.h+10 start = {} start.cvs = love.graphics.newCanvas(250, 350) start.o = false @@ -292,8 +292,6 @@ function loadPre() fadeOpacity = 0 sys = {} sys.s = 0 - sys.width = love.graphics.getWidth() - sys.height = love.graphics.getHeight() sys.mouse = {} sys.mouse.p = {} sys.mouse.x = love.mouse.getX |
