Skip to content

Commit

Permalink
Show sensible debug numbers on tiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevadsett committed Sep 10, 2016
1 parent 394359b commit 0bed78e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/views/LevelTileView.js
Expand Up @@ -28,7 +28,9 @@ LevelTileView.prototype = {

if (window.drawDebug) {
ctx.fillStyle = "white";
ctx.fillText(this.model.index, scaledPosition.x, scaledPosition.y + 10);
ctx.font = "12px sans-serif";
ctx.textAlign = "left";
ctx.fillText(this.model.index, scaledPosition.x + 6, scaledPosition.y + 18);
}
},
destroy: function() {
Expand Down

0 comments on commit 0bed78e

Please sign in to comment.