aboutsummaryrefslogtreecommitdiff
path: root/virus1.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-05-06 10:17:29 -0700
committer1029chris <1029chris@gmail.com>2016-05-06 10:17:29 -0700
commit0b29451779c993323af02a6f759eb99aca4486d5 (patch)
tree610b566b3f607605c55854a67d7f0dbab38e0296 /virus1.lua
parent5b26747c9b9a17f6b688e057fd880c5f3a486237 (diff)
Game restarts when you loose.
Added dialogue for virus after loosing many times
Diffstat (limited to 'virus1.lua')
-rw-r--r--virus1.lua14
1 files changed, 11 insertions, 3 deletions
diff --git a/virus1.lua b/virus1.lua
index b97ece3..613d12a 100644
--- a/virus1.lua
+++ b/virus1.lua
@@ -521,8 +521,12 @@ function drawVirusFight1()
end
drawBullets()
drawStart()
- if v1.c.chat.msgs == 47 then
- v1.complete = true
+ if v1.c.chat.msgs == 47 or v1.c.chat.msgs == 53 then
+ if v1.c.chat.msgs == 47 then
+ v1.complete = true
+ elseif v1.c.chat.msgs == 53 then
+ virus1Lose = virus1Lose + 1
+ end
love.graphics.setColor(255,255,255)
love.graphics.draw(expl.pic, expl.frames[v1.explodeEndFrame], v1.c.x-615/2-800, v1.c.y-100+20-700, 0, 7, 7)
v1.explodeEndFrame = v1.explodeEndFrame + 1
@@ -530,7 +534,11 @@ function drawVirusFight1()
v1.rumbleLoop:stop()
if v1.explodeEndFrame >= 20 then
v1.yes = false
- scene = 1
+ if v1.c.chat.msgs == 47 then
+ scene = 1
+ elseif v1.c.chat.msgs == 53 then
+ scene = 666
+ end
end
end
end