Skip to content

Commit

Permalink
Show player HP above it
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabryz committed Apr 28, 2013
1 parent f98e2cb commit 9d44289
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/js/Mangonel.js
Expand Up @@ -441,6 +441,8 @@

var length = players.length;
for(var i = 0; i < length; i++) {
var coords = mapToVp(players[i].x, players[i].y);
ctx.fillText(players[i].HP, coords.x + players[i].centerX, coords.y + players[i].centerY - 20); // debug
if (players[i].id != player.id) {
drawPlayer(players[i]);
}
Expand Down

0 comments on commit 9d44289

Please sign in to comment.