xxxxxxxxxx
15
let restartButton
function death(){
background(245, 193, 239)
textSize(40)
text("GAME OVER",150,200)
restartButton=createButton("RESTART")
restartButton.position(220,400)
restartButton.mousePressed(Restart)
noLoop()
}
function Restart(){
location.reload()
}