aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop.lua14
-rw-r--r--virus1.lua7
2 files changed, 11 insertions, 10 deletions
diff --git a/desktop.lua b/desktop.lua
index 337aa08..37c3ebe 100644
--- a/desktop.lua
+++ b/desktop.lua
@@ -91,7 +91,7 @@ function drawTentacles()
love.graphics.setColor(256,256,256)
v1.t.time = v1.t.time - delta
if v1.t.x <= -30 then
- v1.t.x = v1.t.x + delta*4
+ v1.t.x = v1.t.x + delta*5
elseif v1.t.x > -30 then
v1.t.x = -30
end
@@ -105,14 +105,14 @@ function drawTentacles()
for i=1,#v1.t.t do
if v1.t.t[i].syp == 0 and v1.c.chat.msgs <= 40 then
if v1.t.t[i].syc <= v1.t.t[i].syl then
- v1.t.t[i].syc = v1.t.t[i].syc + math.random(0.1,0.02,0.05,0.01,0.08,0.065)+((v1.t.t[i].syl-v1.t.t[i].syc)/10)
+ v1.t.t[i].syc = v1.t.t[i].syc + math.random(0.1,0.02,0.05,0.01,0.08,0.065)+((v1.t.t[i].syl-v1.t.t[i].syc)/10)*sys.s
elseif v1.t.t[i].syc > v1.t.t[i].syl then
v1.t.t[i].syp = 1
v1.t.t[i].syl = math.random(0,3)
end
elseif v1.t.t[i].syp == 1 and v1.c.chat.msgs <= 40 then
if v1.t.t[i].syc >= -v1.t.t[i].syl then
- v1.t.t[i].syc = v1.t.t[i].syc - math.random(0.1,0.2,0.05,0.01,0.08,0.065)+((-v1.t.t[i].syl-v1.t.t[i].syc)/10)
+ v1.t.t[i].syc = v1.t.t[i].syc - math.random(0.1,0.2,0.05,0.01,0.08,0.065)+((-v1.t.t[i].syl-v1.t.t[i].syc)/10)*sys.s
elseif v1.t.t[i].r < -v1.t.t[i].syl then
v1.t.t[i].syp = 0
v1.t.t[i].syl = math.random(0,3)
@@ -120,14 +120,14 @@ function drawTentacles()
end
if v1.t.t[i].rup == 0 and v1.c.chat.msgs <= 40 then
if v1.t.t[i].r <= v1.t.t[i].rl then
- v1.t.t[i].r = v1.t.t[i].r + math.random(0.1,0.2,0.3,0.4,0.5,1,2)+((v1.t.t[i].rl-v1.t.t[i].r)/10)
+ v1.t.t[i].r = v1.t.t[i].r + math.random(0.1,0.2,0.3,0.4,0.5,1,2)+((v1.t.t[i].rl-v1.t.t[i].r)/10)*sys.s
elseif v1.t.t[i].r > v1.t.t[i].rl then
v1.t.t[i].rup = 1
v1.t.t[i].rl = math.random(2,20)
end
elseif v1.t.t[i].rup == 1 and v1.c.chat.msgs <= 40 then
if v1.t.t[i].r >= -v1.t.t[i].rl then
- v1.t.t[i].r = v1.t.t[i].r - math.random(0.1,0.2,0.3,0.4,0.5,1,2)+((-v1.t.t[i].rl-v1.t.t[i].r)/10)
+ v1.t.t[i].r = v1.t.t[i].r - math.random(0.1,0.2,0.3,0.4,0.5,1,2)+((-v1.t.t[i].rl-v1.t.t[i].r)/10)*sys.s
elseif v1.t.t[i].r < -v1.t.t[i].rl then
v1.t.t[i].rup = 0
v1.t.t[i].rl = math.random(2,20)
@@ -147,12 +147,12 @@ function drawTentacles()
end
end
if v1.t.t[i].d == false and v1.c.chat.msgs <= 40 then
- v1.t.t[i].y = v1.t.t[i].y + v1.t.t[i].sp
+ v1.t.t[i].y = v1.t.t[i].y + v1.t.t[i].sp*sys.s
if v1.t.t[i].y >= v1.t.t[i].dy then
v1.t.t[i].rm = true
end
elseif v1.t.t[i].d == false and v1.c.chat.msgs <= 40 then
- v1.t.t[i].y = v1.t.t[i].y - v1.t.t[i].sp
+ v1.t.t[i].y = v1.t.t[i].y - v1.t.t[i].sp*sys.s
if v1.t.t[i].y <= v1.t.t[i].dy then
v1.t.t[i].rm = true
end
diff --git a/virus1.lua b/virus1.lua
index e9c6fc8..a19ebd6 100644
--- a/virus1.lua
+++ b/virus1.lua
@@ -107,7 +107,7 @@ function drawVirusFight1()
av.fireb = true
end
if av.charge < 40 then
- av.charge = av.charge + math.random(1,10,25,40,5,2,8)*delta
+ av.charge = av.charge + (math.random(4,12,25,40,5,2,10)*delta)/di
elseif av.charge > 40 then
av.charge = 40
end
@@ -150,7 +150,7 @@ function drawVirusFight1()
end
if v1.c.chat.msgs > 30 and v1.c.chat.msgs ~= 37 and v1.c.chat.msgs ~= 38 and v1.c.chat.msgs < 41 then
for i=1,4 do
- if v1.specialAbi == false or v1.c.chat.msgs <= 20 then
+ if v1.specialAbi == false or v1.c.health <= 20 then
v1.turret[i].rt = math.atan2((win[4].y+win[4].h/2 - v1.turret[i].y), (win[4].x+win[4].w/2 - v1.turret[i].x))-math.rad(90)
elseif v1.specialAbi == true and v1.turretTimer < 30 then
v1.turret[i].rt = 0
@@ -316,6 +316,7 @@ function drawVirusFight1()
v1.c.chat.msg = ""
elseif v1.c.chat.msgs == 40 and v1.c.health <= 0 then
music.battle1:stop()
+ v1.shine:stop()
v1.rumbleLoop:play()
v1.c.chat.msgs = 41
v1.c.chat.char = 0
@@ -575,7 +576,7 @@ function drawVirusFight1()
v1.complete = true
end
love.graphics.setColor(255,255,255)
- love.graphics.draw(expl.pic, expl.frames[math.floor(v1.explodeEndFrame)], v1.c.x-615/2-800, v1.c.y-100+20-700, 0, 7, 7)
+ love.graphics.draw(expl.pic, expl.frames[math.floor(v1.explodeEndFrame)], v1.c.x, v1.c.y, 0, 20, 20, 320/2,240/2)
v1.explodeEndFrame = v1.explodeEndFrame + 1*sys.s
v1.explosionSound:play()
v1.rumbleLoop:stop()