aboutsummaryrefslogtreecommitdiff
path: root/system.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-03-08 17:40:10 -0800
committer1029chris <1029chris@gmail.com>2016-03-08 17:40:10 -0800
commit5e6570f4a189a4bcfab79ecf88fbd0df22be023e (patch)
tree27e74d5c16b6ace958488d4c4a35d9b248dcca4c /system.lua
parent414afd442a21455027f052e5cc849091d60a777d (diff)
Worked more on chat, optimized code.
Diffstat (limited to 'system.lua')
-rw-r--r--system.lua13
1 files changed, 4 insertions, 9 deletions
diff --git a/system.lua b/system.lua
index 5275380..ec2f134 100644
--- a/system.lua
+++ b/system.lua
@@ -22,20 +22,15 @@ function drawSystem()
start.o = false
elseif start.o == false then
start.o = true
- msg.new = true
- table.insert(msg.msgs, 1, "HEY YOU")
+ sendMessage(1, "HEY WAZZUP FOOL")
end
end
if start.o == true and sys.mouse.p.p == true and sys.mouse.p.x > 255 or sys.mouse.p.y < sys.h-380 then
start.o = false
end
- drawLayer(7)
- drawLayer(6)
- drawLayer(5)
- drawLayer(4)
- drawLayer(3)
- drawLayer(2)
- drawLayer(1)
+ for i=1,7 do
+ drawLayer(8-i)
+ end
drawStart()
if start.o == true then
drawMenu()