()
| 132 | ctx.fillText("Score: "+score, 8, 20); |
| 133 | } |
| 134 | function drawLives() { |
| 135 | ctx.font = "16px Arial"; |
| 136 | ctx.fillStyle = "white"; |
| 137 | ctx.fillText("Lives: "+lives, canvas.width-65, 20); |
| 138 | } |
| 139 | function sound(src) { |
| 140 | this.sound = document.createElement("audio"); |
| 141 | this.sound.src = src; |