Workshop › Pac-Man-style Maze Chase › Step 33 of 42
When the game is over, steering must not bring it back to life, and the screen should say so: a see-through dark layer
over everything and Game Over in the middle.
```js
function steer(dir) {
if (state === 'over') return
if (state === 'over') {
ctx.fillStyle = 'rgba(11, 16, 32, 0.75)'
ctx.fillRect(0, 0, canvas.width, canvas.height)
ctx.fillStyle = 'white'
ctx.font = 'bold 32px sans-serif'
ctx.fillText('Game Over', canvas.width / 2, canvas.height / 2)
ctx.font = '18px sans-serif'
ctx.fillText('Press Space to play again', canvas.width / 2, canvas.height / 2 + 32)
}
```steer ignores the player once the game is over.rgba color is the background color at 75% opacity: the maze stays faintly visible under it.textAlign is still 'center' from the line above.steer, write the over line.draw, under the ready block, write the over block.Skills: Game states, Drawing on a canvas