Bah.
Chris Pressey
10 years ago
3 | 3 |
var ctx;
|
4 | 4 |
|
5 | 5 |
this.draw = function(timeElapsed) {
|
6 | |
if (counter_elem) {
|
7 | |
counter_elem.innerHTML = Math.floor(counter);
|
|
6 |
if (this.counter_elem) {
|
|
7 |
this.counter_elem.innerHTML = Math.floor(counter);
|
8 | 8 |
}
|
9 | 9 |
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
10 | 10 |
ctx.beginPath();
|