aboutsummaryrefslogtreecommitdiff
path: root/system.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-04-20 10:48:12 -0700
committer1029chris <1029chris@gmail.com>2016-04-20 10:48:12 -0700
commitf7c70cec2946b25ca050796d7c9160044717ce29 (patch)
tree9c5437b6ebef05c74c3ae7092e1369581b7874ca /system.lua
parent5b9e47c1f86fbcd910d96b5d5c76c5d3b7fbf31c (diff)
Added timer for messages
Now they appear on their own. Start menu no longer activates messages
Diffstat (limited to 'system.lua')
-rw-r--r--system.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/system.lua b/system.lua
index 24ac76c..d2639b4 100644
--- a/system.lua
+++ b/system.lua
@@ -3,6 +3,10 @@ function drawLayer(id)
end
function updateSystem(dt)
timeNoti(dt)
+ if time >= msgstime[msg.c] and msgssent < msg.c then
+ sendMessage(1, msgs[msg.c])
+ msgssent = msgssent + 1
+ end
end
function drawSystem()
love.graphics.setBackgroundColor(0, 128, 128)