Workshop › Sokoban › Step 20 of 29
A counter at the top left tells the player where they are: Level 1/3.
```js
tile(player.x, player.y, '#38bdf8', 10)
ctx.fillStyle = 'white'
ctx.font = 'bold 18px sans-serif'
ctx.textAlign = 'left'
ctx.textBaseline = 'middle'
ctx.fillText('Level ' + (level + 1) + '/' + LEVELS.length, 12, TOP / 2)
```textAlign = 'left' puts the start of the text at x; textBaseline = 'middle' puts its middle at y.level counts from 0 but people count from 1, so we show level + 1. The parentheses add first; without them the
text would get 0 and 1 glued on: 'Level 01/3'.TOP / 2 is the middle of the top strip.In draw, under the player line, leave an empty line and write the five lines. Press Run.
Skills: Drawing on a canvas
← On to the next level A line at the bottom →