aboutsummaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-05-18 09:14:19 -0700
committer1029chris <1029chris@gmail.com>2016-05-18 09:14:19 -0700
commit30e3c4eb01e1f764113bc3110a48569caea14bb7 (patch)
treedf75c62b2b810e4822708d033ed887fb654908ad /main.lua
parent9eb7db20544287439f1b0b4b648bd69af06a61b5 (diff)
Some tweaks
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/main.lua b/main.lua
index 630627c..a5a116f 100644
--- a/main.lua
+++ b/main.lua
@@ -16,9 +16,6 @@ function love.load()
require "virus1"
require "dialogue"
loadPre()
- --loadAssets()
- --loadVar()
- --loadDia()
end
function love.update(dt)
delta = dt
@@ -67,7 +64,12 @@ end
function love.mousepressed(x, y, button)
sys.mouse.p.x = x
sys.mouse.p.y = y
- sys.mouse.p.p = true
+ if button == 2 then
+ sys.mouse.p.p = false
+ end
+ if button == 1 then
+ sys.mouse.p.p = true
+ end
end
function love.keyreleased(key)
if key == "f11" then