woring on laser-bot movement

This commit is contained in:
landgreen
2020-01-15 06:55:05 -08:00
parent bdbae2a224
commit bcad2351dd
3 changed files with 49 additions and 31 deletions

View File

@@ -905,7 +905,7 @@ const mech = {
if (b.modBlockDmg) {
who.damage(b.modBlockDmg)
//draw electricity
const step = mech.grabRange / 5
const step = 40
ctx.beginPath();
for (let i = 0, len = 2 * b.modBlockDmg / 0.7; i < len; i++) {
let x = mech.pos.x - 20 * unit.x;