aboutsummaryrefslogtreecommitdiff
path: root/draw.lua
diff options
context:
space:
mode:
Diffstat (limited to 'draw.lua')
-rw-r--r--draw.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/draw.lua b/draw.lua
index ee7df3c..ca7cb2c 100644
--- a/draw.lua
+++ b/draw.lua
@@ -15,13 +15,17 @@ drawbg()
drawobjs()
if gamerunning then
- currentscore("000000","000000",2,2)
if gameover then --gameover timer, it does a cute spinny! 😵
printdropshadow(ceil(respawntimer),63+sin(t())*3,55+cos(t())*3,6,5)
+ currentscore("000000","000000",true,true) --clear score
elseif players[1].health <=0 then
printdropshadow(ceil(players[1].inv),players[1].x+sin(t())*3,players[1].y+cos(t())*3,12,15)
+ currentscore("000000","696969",true,false) --clear score for P1
elseif #players > 1 and players[2].health <=0 then
printdropshadow(ceil(players[2].inv),players[2].x+sin(t())*3,players[2].y+cos(t())*3,9,2)
+ currentscore("000420","000000",false,true) --clear score for P2
+ else
+ currentscore("000420","696969",false,false) --current game score
end
end
if not gamerunning or menuscroll < 1 then
@@ -51,6 +55,6 @@ if not gamerunning or menuscroll < 1 then
line(i-1,128,i-1,sin((i+0.22-t()*20)/24.357)*2+t()*80-10,11) --cool wavy transition effect!!!!
line(i-1,128,i-1,sin((i+t()*60)/44.357)*5+t()*80-5,3)
end
- addcircle(rnd(128), t()*80, 0,rnd(1),rnd(12)+2,1.5,14,0)
+ addcircle(rnd(128), t()*80, 0,rnd(1),rnd(12)+2,1.5,14)
end
end \ No newline at end of file