Workshop › Battleship › Step 34 of 35
Next to your small sea there is room for the numbers: your shots, your best, the enemy ships still afloat, and the keys.
```js
const x = HOME.x + N * SMALL + 20
ctx.fillStyle = 'white'
ctx.font = '14px sans-serif'
ctx.fillText('Shots ' + shots, x, HOME.y + 16)
ctx.fillText('Best ' + (best || '-'), x, HOME.y + 38)
ctx.fillText('Left: ' + enemyFleet.filter((s) => !sunk(s)).map((s) => s.cells.length).join(' '), x, HOME.y + 60)
ctx.fillText('H: their heat map', x, HOME.y + 82)
if (state !== 'playing') ctx.fillText('Tap or Enter: again', x, HOME.y + 104)
```x is 20 pixels to the right of your small sea.best || '-' shows a dash while there is no record yet.filter, map and join(' ') turn the ships still afloat into a text like 5 3 2.At the end of draw, under your fleet's drawSea, write the panel lines.
Skills: Drawing on a canvas
← Your best game Build it yourself: ships apart →