aboutsummaryrefslogtreecommitdiff
path: root/main.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 /main.lua
parent63e7108b5378f02e37a2298ad2fc3ac0b5261cfe (diff)
Allowed game to be any resolution and still work
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index a138d94..c3613fc 100644
--- a/main.lua
+++ b/main.lua
@@ -19,6 +19,7 @@ function love.load()
loadVar()
end
function love.update(dt)
+ minim = love.graphics.getHeight()+10
sys.mouse.x = love.mouse.getX()
sys.mouse.y = love.mouse.getY()
if love.keyboard.isDown("escape") == true then
@@ -30,7 +31,7 @@ function love.update(dt)
win[2].min = false
end
if love.keyboard.isDown("f4") == true then
- love.window.setMode(800, 600, {fullscreen=true, fullscreentype="exclusive"})
+ love.window.setMode(800, 600, {fullscreen=true, fullscreentype="desktop"})
elseif love.keyboard.isDown("f5") == true then
love.window.setMode(800, 600, {fullscreen=false})
end