Workshop › Tower Defense › Step 38 of 42
A click on the start button starts the wave. A click anywhere else in the bottom bar does nothing.
```js
if (p.y >= BAR) {
if (state === 'building' && p.x >= START.x && p.x < START.x + START.w) startWave()
return
}
```p.y >= BAR is in the bottom bar, never on the board, so return keeps it from building.x is between its left edge and left edge + width.In pointerdown, write the block right above build(p.col, p.row).
Skills: Keyboard and mouse input
← The bottom bar A second tower: the cannon →