dmg display for block collision
This commit is contained in:
@@ -97,8 +97,8 @@ function mobCollisionChecks(event) {
|
|||||||
//add dmg to draw queue
|
//add dmg to draw queue
|
||||||
x: pairs[i].activeContacts[0].vertex.x,
|
x: pairs[i].activeContacts[0].vertex.x,
|
||||||
y: pairs[i].activeContacts[0].vertex.y,
|
y: pairs[i].activeContacts[0].vertex.y,
|
||||||
radius: Math.sqrt(dmg) * 40,
|
radius: dmg * 500,
|
||||||
color: game.playerDmgColor,
|
color: game.mobDmgColor,
|
||||||
time: game.drawTime
|
time: game.drawTime
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user