aboutsummaryrefslogtreecommitdiff
path: root/virus1.lua
diff options
context:
space:
mode:
Diffstat (limited to 'virus1.lua')
-rw-r--r--virus1.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/virus1.lua b/virus1.lua
index d138be8..192c50a 100644
--- a/virus1.lua
+++ b/virus1.lua
@@ -267,7 +267,7 @@ function drawVirusFight1()
-math.sin(v1.turret[i].r+math.rad(90))*(v1.turret[i].y-v1.turret[i].y)+v1.turret[i].x
local y = math.sin(v1.turret[i].r+math.rad(90))*(v1.turret[i].x+148-v1.turret[i].x)
+math.cos(v1.turret[i].r+math.rad(90))*(v1.turret[i].y-v1.turret[i].y)+v1.turret[i].y
- addBullet(x,y,v1.turret[i].r+math.rad(90),(6*(0.75+(v1.spm/4)))*(1080/sys.h),"v1",i)
+ addBullet(x,y,v1.turret[i].r+math.rad(90),(6*(0.75+(v1.spm/4)))*(sys.h/1080),"v1",i)
if v1.laserSound:isPlaying() == true then
v1.laserSound:rewind()
else
@@ -297,9 +297,9 @@ function drawVirusFight1()
end
end
if v1.c.y == v1.c.yd and v1.c.health < 45 and v1.turretTimer < 30 then
- v1.c.yd = math.random(100,sys.h/2-100)
+ v1.c.yd = math.random(80,sys.h/2-(120*(1080/sys.h)))
elseif v1.turretTimer < 30 and v1.c.health > 40 then
- v1.c.yd = 140
+ v1.c.yd = 120
end
if v1.turretTimer >= 30 then
v1.c.xd = win[4].x+win[4].w/2
@@ -524,7 +524,7 @@ function drawBullets()
if av.bullets[i].x >= v1.c.x-615/2 and av.bullets[i].x <= v1.c.x-615/2+615 and av.bullets[i].y >= v1.c.y-100+20
and av.bullets[i].y <= v1.c.y-100+20+200 and v1.c.chat.msgs > 35 then
v1.c.health = v1.c.health - 5
- v1.spm = v1.spm + 0.2*(1080/sys.h)
+ v1.spm = v1.spm + 0.2*(sys.h/1080)
av.bullets[i].rm = true
if antivirus.hit:isPlaying() == true then
antivirus.hit:rewind()