aboutsummaryrefslogtreecommitdiff
path: root/system.lua
diff options
context:
space:
mode:
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)