aboutsummaryrefslogtreecommitdiff
path: root/enemies.lua
diff options
context:
space:
mode:
authorRibbonCable <ambiguousmachine@gmail.com>2022-02-21 10:54:13 -0800
committerRibbonCable <ambiguousmachine@gmail.com>2022-02-21 10:54:13 -0800
commit66ce5dd3c6d321d2b4a050ea6d3a8e77cf563c1b (patch)
treec827a8e42bd494b8678a4c02852d65e2c3c710a6 /enemies.lua
parent9ae61a80096b2c8bcbfb72f1302ee653efff716c (diff)
Some changes to the missle boss.
Diffstat (limited to 'enemies.lua')
-rw-r--r--enemies.lua21
1 files changed, 11 insertions, 10 deletions
diff --git a/enemies.lua b/enemies.lua
index 43a18b9..6dbff03 100644
--- a/enemies.lua
+++ b/enemies.lua
@@ -510,7 +510,7 @@ function addmissileboss(x, y) --boss that shoots missiles!!!
w = 32,
h = 32,
inv = -1,
- health = 40*#players, --40
+ health = 150*#players, --40 originally, now 200
shootcooldown = 1.8,
speed = 0.04,
shot = enemyshot,
@@ -519,7 +519,7 @@ function addmissileboss(x, y) --boss that shoots missiles!!!
function enemy.draw()
local sprite = 69
- if enemy.health < 11 then
+ if enemy.health < 38 then
sprite = 101
damagesmoke(enemy)
end
@@ -534,8 +534,8 @@ function addmissileboss(x, y) --boss that shoots missiles!!!
--some cool different moves, shout out to dont get a virus fans!
if currentwavetime%18 > 8 and currentwavetime%20 < 12 then
enemy.targety = everysecondtimer\0.501*96
- elseif currentwavetime%18 > 17.3 then --INTIMIDATION TACTICS!!!!!
- enemy.targety = targetplayer.y
+ elseif currentwavetime%rnd({17,18}) > 15 and enemy.health > 38 then --INTIMIDATION TACTICS!!!!! (rnd({16,20}) was 18 and 15 was 17.3 originally)
+ enemy.targety = targetplayer.y-16
enemy.targetx = targetplayer.x+24
enemy.shootcooldown = 0.8
end
@@ -547,21 +547,22 @@ function addmissileboss(x, y) --boss that shoots missiles!!!
enemy.targety = rnd(96)
end
if enemy.shootcooldown < 0 then
- enemy.shootcooldown = 0.6 + rnd(0.6)
+ enemy.shootcooldown = 0.8 + rnd(0.5) --0.6 for both originally
if enemy.x < canshootatx then
local offsetmissleboss = 2
- if currentwavetime%2 > 1 then offsetmissleboss = 30 end
+ if currentwavetime%2 > 1 then offsetmissleboss = 28 end --30 originally
addmissile(enemy.x, enemy.y+offsetmissleboss, targetplayer)
- if enemy.health < 11 then
+ -- if enemy.health < 50 then
+ if currentwavetime%rnd({9,11}) < 1 or enemy.health < 38 then
+ enemy.shootcooldown = 1 + rnd(1) --not originally here (w the bullets and missles, it becomes much more difficult)
sfx(15,2)
addbullet(enemy.x,enemy.y+16,(targetplayer.x-enemy.x)/70,(targetplayer.y-enemy.y-16)/70)
- -- ERROR attempting to find a non existant player
end
enemy.speed += 0.001
end
end
enemymisc(enemy)
- enemydie(enemy,21,3,300,true) --death!!!!
+ enemydie(enemy,21,3,325,true) --death!!!!
end
add(enemies, enemy)
@@ -643,7 +644,7 @@ function addfinalboss() --THE FINAL BOSS!!!!!!! WOOOAAAHHHHHH!!!!!!!!!!!!!!!!!!!
addbullet(110,64, rnd(0.5)-1, rnd(2)-1)
end
sfx(3,3) --sound for barrage of bullets
- if rnd() < 0.4 then
+ if rnd() < 0.6 then --originally 0.4
addmissile(110, 60, targetplayer)
end
end