From 8d027534abab0abee2b01f13804805f4e6d8ff6c Mon Sep 17 00:00:00 2001 From: Chris B <1029chris@gmail.com> Date: Fri, 10 Jun 2016 19:54:03 -0700 Subject: Fixed more glitches --- virus1.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'virus1.lua') diff --git a/virus1.lua b/virus1.lua index 6e0ff94..fe3a636 100644 --- a/virus1.lua +++ b/virus1.lua @@ -182,15 +182,15 @@ function drawVirusFight1() end for i=1,3 do if v1.c.eyetx > v1.c.x+7+v1.c.eyex and v1.c.eyex < 15 then - v1.c.eyex = v1.c.eyex + 1 + v1.c.eyex = v1.c.eyex + 1*sys.s elseif v1.c.eyetx < v1.c.x+7+v1.c.eyex and v1.c.eyex > -15 then - v1.c.eyex = v1.c.eyex - 1 + v1.c.eyex = v1.c.eyex - 1*sys.s end end if v1.c.eyety > v1.c.y-28+v1.c.eyey and v1.c.eyey < 5 then - v1.c.eyey = v1.c.eyey + 3 + v1.c.eyey = v1.c.eyey + 3*sys.s elseif v1.c.eyety < v1.c.y-28+v1.c.eyey and v1.c.eyey > -10 then - v1.c.eyey = v1.c.eyey - 3 + v1.c.eyey = v1.c.eyey - 3*sys.s end love.graphics.draw(v1.c.pupil, v1.c.x+7+v1.c.eyex+math.random(0,0.5)+v1.shakex, v1.c.y-28+v1.c.eyey+math.random(0,0.5)+v1.shakey, v1.c.r, v1.c.s*1.2, v1.c.s*1.2, 3, 11) playAnimation(v1.c.idle, true, v1.c.x+v1.shakex, v1.c.y+v1.shakey, v1.c.r, v1.c.s, 100, 100, 0.5) @@ -523,7 +523,7 @@ function drawVirusFight1() end if v1.c.shine.s1 >= 7 or v1.c.shine.ct >= 3 then v1.c.shine.sm1 = false - v1.c.shine.ct = v1.c.shine.ct + 1*sys.s + v1.c.shine.ct = v1.c.shine.ct + 1 elseif v1.c.shine.s1 <= -5 and v1.c.shine.ct < 3 then v1.c.shine.sm1 = true end -- cgit