(src)
| 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; |
| 142 | this.sound.setAttribute("preload", "auto"); |
| 143 | this.sound.setAttribute("controls", "none"); |
| 144 | this.sound.style.display = "none"; |
| 145 | document.body.appendChild(this.sound); |
| 146 | this.play = function(){ |
| 147 | this.sound.play(); |
| 148 | } |
| 149 | this.stop = function(){ |
| 150 | this.sound.pause(); |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | |
| 155 | function draw() { |
nothing calls this directly
no outgoing calls
no test coverage detected