diff options
| author | 1029chris <1029chris@gmail.com> | 2016-04-30 12:40:39 -0700 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2016-04-30 12:40:39 -0700 |
| commit | 0b95f7b3e6531d599d705fb8692d86fc0abb45d6 (patch) | |
| tree | eabf9669feea2a18fbc8181dd3c27dbe553e2b74 /virus1.lua | |
| parent | 1df9f876d5506907ede21667001ce93965069602 (diff) | |
Monitor size adjustments
Diffstat (limited to 'virus1.lua')
| -rw-r--r-- | virus1.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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() |
