Workshop › Pac-Man-style Maze Chase › Step 16 of 42
Write the score at the top left and the level at the top right, in the space TOP left free.
```js
ctx.fillStyle = 'white'
ctx.font = 'bold 18px sans-serif'
ctx.textAlign = 'left'
ctx.fillText('Score: ' + score, 10, 27)
ctx.textAlign = 'right'
ctx.fillText('Level ' + level, canvas.width - 10, 27)
```textAlign = 'left' puts the start of the text at x = 10; 'right' puts its end at canvas.width - 10.'Score: ' + score joins text and number.At the end of draw, after an empty line, write the text lines.
Skills: Drawing on a canvas
← Eat the pellets Clear the maze →