aboutsummaryrefslogtreecommitdiff
path: root/var.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 /var.lua
parent77613f5d3f178e3dc139d39f71e8fd33a67cfb44 (diff)
Added sys.w and sys.h for the games window width and height
Diffstat (limited to 'var.lua')
-rw-r--r--var.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/var.lua b/var.lua
index f801020..7fb4e01 100644
--- a/var.lua
+++ b/var.lua
@@ -20,6 +20,8 @@ function loadVar()
sys.mouse.p.y = 0
sys.mouse.p.p = false
sys.mouse.drag = false
+ sys.w = love.graphics.getWidth()
+ sys.h = love.graphics.getHeight()
panel = {}
panel.thick = 30
panel.x = 0