chain reaction
tech: chain reaction now requires vacuum bomb, but it increases grenade radius and damage 33% (and makes blocks explode) needle gun fires with more regular timing needles despawn 1.5s faster, for performance reasons intro level power ups are relocated tech: decomposers renamed necrophage if mobs are one shotted before they see you, they no longer alert nearby mobs clicking on a mob in testing will log that mob in console
This commit is contained in:
@@ -57,6 +57,14 @@ const simulation = {
|
||||
m.hold();
|
||||
level.customTopLayer();
|
||||
simulation.draw.wireFrame();
|
||||
if (input.fire && m.fireCDcycle < m.cycle) {
|
||||
m.fireCDcycle = m.cycle + 15; //fire cooldown
|
||||
for (let i = 0, len = mob.length; i < len; i++) {
|
||||
if (Vector.magnitudeSquared(Vector.sub(mob[i].position, simulation.mouseInGame)) < mob[i].radius * mob[i].radius) {
|
||||
console.log(mob[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
simulation.draw.cons();
|
||||
simulation.draw.testing();
|
||||
simulation.drawCircle();
|
||||
|
||||
Reference in New Issue
Block a user