blocks don't block vision

more bug fixes (pulse color, backwards induction giving too many tech)

mobs can now see through blocks
  mobs spawns and level spawns have been adjusted to prevent getting zonked at the start of a level
This commit is contained in:
landgreen
2021-03-23 15:47:33 -07:00
parent 38e38578e6
commit 84e4079181
8 changed files with 118 additions and 87 deletions

View File

@@ -452,7 +452,7 @@ const b = {
},
pulse(energy, angle = m.angle) {
let best;
let explosionRadius = 1400 * energy
let explosionRadius = 1300 * energy
let range = 3000
const path = [{
x: m.pos.x + 20 * Math.cos(angle),
@@ -537,7 +537,7 @@ const b = {
};
}
}
if (best.who) b.explosion(path[1], explosionRadius, true)
if (best.who) b.explosion(path[1], explosionRadius)
if (tech.isPulseStun) {
const range = 100 + 2000 * energy
@@ -661,7 +661,7 @@ const b = {
};
}
}
if (best.who) b.explosion(path[1], explosionRadius, true)
if (best.who) b.explosion(path[1], explosionRadius)
//draw laser beam
ctx.beginPath();