rename to laser bot

This commit is contained in:
landgreen
2020-01-13 06:52:53 -08:00
parent a4a2a83412
commit 90abc9c64f
2 changed files with 5 additions and 5 deletions

View File

@@ -187,7 +187,7 @@ const b = {
count: 0, count: 0,
effect() { effect() {
b.modLaserBotCount++; b.modLaserBotCount++;
b.guardian(); b.laserBot();
} }
}, },
{ {
@@ -1027,7 +1027,7 @@ const b = {
restitution: 0.4 + 0.5 * Math.random(), restitution: 0.4 + 0.5 * Math.random(),
dmg: 0, // 0.14 //damage done in addition to the damage from momentum dmg: 0, // 0.14 //damage done in addition to the damage from momentum
minDmgSpeed: 2, minDmgSpeed: 2,
lookFrequency: 45 + Math.floor(17 * Math.random()), lookFrequency: 56 + Math.floor(17 * Math.random()),
acceleration: 0.0025 + 0.001 * Math.random(), acceleration: 0.0025 + 0.001 * Math.random(),
range: 300 + Math.floor(70 * Math.random()), range: 300 + Math.floor(70 * Math.random()),
endCycle: Infinity, endCycle: Infinity,
@@ -1076,7 +1076,7 @@ const b = {
y: speed * Math.sin(dir) y: speed * Math.sin(dir)
}); });
}, },
guardian(speed = 1) { laserBot(speed = 1) {
const me = bullet.length; const me = bullet.length;
const dir = mech.angle; const dir = mech.angle;
const RADIUS = (14 + 6 * Math.random()) * b.modBulletSize const RADIUS = (14 + 6 * Math.random()) * b.modBulletSize
@@ -1135,7 +1135,7 @@ const b = {
bestVertexDistance = dist bestVertexDistance = dist
} }
} }
const dmg = b.dmgScale * 0.045; const dmg = b.dmgScale * 0.05;
this.lockedOn.damage(dmg); this.lockedOn.damage(dmg);
this.lockedOn.locatePlayer(); this.lockedOn.locatePlayer();

View File

@@ -38,7 +38,7 @@ const level = {
level.addToWorld(); //add bodies to game engine level.addToWorld(); //add bodies to game engine
game.draw.setPaths(); game.draw.setPaths();
for (let i = 0; i < b.modLaserBotCount; i++) { for (let i = 0; i < b.modLaserBotCount; i++) {
b.guardian() b.laserBot()
} }
for (let i = 0; i < b.modNailBotCount; i++) { for (let i = 0; i < b.modNailBotCount; i++) {
b.nailBot() b.nailBot()