aboutsummaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
authorChris B <1029chris@gmail.com>2016-02-20 21:46:15 -0800
committerChris B <1029chris@gmail.com>2016-02-20 21:46:15 -0800
commit248b6bb681abef218e24e8e1b2be8f0a8218c47f (patch)
tree0b22588f68ccb82391f74e5c0a08e913ad16dde2 /main.lua
parent77613f5d3f178e3dc139d39f71e8fd33a67cfb44 (diff)
Added sys.w and sys.h for the games window width and height
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index a17dc18..a2bc596 100644
--- a/main.lua
+++ b/main.lua
@@ -19,6 +19,8 @@ function love.load()
loadVar()
end
function love.update(dt)
+ sys.w = love.graphics.getWidth()
+ sys.h = love.graphics.getHeight()
minim = love.graphics.getHeight()+10
sys.mouse.x = love.mouse.getX()
sys.mouse.y = love.mouse.getY()