Workshop › Tower Defense › Step 37 of 42
Under the board there is room for a bar: a start button while building, the enemies left during a wave, and the best score on the right.
```js
const BAR = TOP + ROWS * TILE // the bottom bar, with the start button, begins here
// The tower buttons in the top bar, and the start button in the bottom bar.
const START = { x: 150, w: 180 }
ctx.fillStyle = 'white'
if (state === 'building') {
ctx.fillStyle = '#4f46e5'
ctx.fillRect(START.x, BAR + 6, START.w, 28)
ctx.fillStyle = 'white'
ctx.fillText('Start wave ' + (wave + 1), START.x + START.w / 2, BAR + 26)
} else if (state === 'wave') {
ctx.fillText('Wave ' + wave + ': ' + (toSpawn + enemies.length) + ' left', canvas.width / 2, BAR + 26)
}
ctx.textAlign = 'right'
ctx.fillText('Best ' + best, canvas.width - 10, BAR + 26)
```BAR is where the board ends: the top bar plus 9 rows of 40 pixels = 400.START keeps the button's left edge and width in one place, for drawing now and for clicks later.textAlign = 'right' lines the best score up against the right edge.TOP line, write the BAR line.build function, write the comment and START.draw, between ctx.textAlign = 'center' and if (state === 'over'), write the bar drawing (with an empty line first).Skills: Drawing on a canvas