From 6ce17c9b3992ee358beafff2ce6f9b837718e31d Mon Sep 17 00:00:00 2001 From: lilgreenland Date: Thu, 21 Nov 2019 07:01:53 -0800 Subject: [PATCH] dmg display for block collision --- js/engine.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/engine.js b/js/engine.js index f23ef85..aa678ab 100644 --- a/js/engine.js +++ b/js/engine.js @@ -97,8 +97,8 @@ function mobCollisionChecks(event) { //add dmg to draw queue x: pairs[i].activeContacts[0].vertex.x, y: pairs[i].activeContacts[0].vertex.y, - radius: Math.sqrt(dmg) * 40, - color: game.playerDmgColor, + radius: dmg * 500, + color: game.mobDmgColor, time: game.drawTime }); return;