UI Changes

This commit is contained in:
Henry Wang
2017-02-24 01:17:49 -06:00
parent 6e9377387d
commit 4a0bd33a44
4 changed files with 17 additions and 8 deletions

View File

@@ -417,7 +417,12 @@ Player.prototype.render = function(ctx, fade)
//Render name
ctx.fillStyle = this.shadowColor.deriveAlpha(fade).rgbString();
ctx.textAlign = "center";
ctx.fillText(this.name, this.posX + CELL_WIDTH / 2, this.posY - SHADOW_OFFSET * 2);
var yoff = -SHADOW_OFFSET * 2
if (this.row === 0)
yoff = SHADOW_OFFSET * 2 + CELL_WIDTH;
ctx.font = "18px Changa";
ctx.fillText(this.name, this.posX + CELL_WIDTH / 2, this.posY + yoff);
};
function move(data)