aboutsummaryrefslogtreecommitdiff
path: root/virus1.lua
diff options
context:
space:
mode:
Diffstat (limited to 'virus1.lua')
-rw-r--r--virus1.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/virus1.lua b/virus1.lua
index 947328f..3f1a389 100644
--- a/virus1.lua
+++ b/virus1.lua
@@ -50,9 +50,7 @@ function drawVirusFight1()
playAnimation(v1.c.idle, true, v1.c.x+40, v1.c.y+40, v1.c.r, v1.c.s, 100, 100, 0.5)
love.graphics.setColor(255,255,255)
love.graphics.draw(v1.c.eye, v1.c.x-32, v1.c.y-50, v1.c.r, v1.c.s*0.9, v1.c.s*1.1)
- if v1.c.chat.msgs < 3 or v1.c.chat.msgs >= 11 then
- v1.c.eyex = 0
- v1.c.eyey = 0
+ if v1.c.chat.msgs < 3 or v1.c.chat.msgs >= 11 or v1.c.chat.msgs == 7 then
v1.c.eyetx = v1.c.x+7
v1.c.eyety = v1.c.y-28
elseif v1.c.chat.msgs >= 3 and v1.c.chat.msgs <= 7 then
@@ -97,6 +95,12 @@ function drawVirusFight1()
end
end
end
+ if v1.c.chat.msgs == 8 then
+ v1.c.chat.time = v1.c.chat.time + delta
+ if v1.c.chat.time > 4 then
+ v1.c.chat.msgs = 9
+ end
+ end
v1.c.sp = math.sqrt(math.abs(v1.c.xd - v1.c.x)*2 + math.abs(v1.c.yd - v1.c.y)*2)/5
if v1.c.chat.msgs == 8 then
v1.c.sp = v1.c.sp*2