fix copy-pasta
This commit is contained in:
parent
b5a612cd0f
commit
177adb9684
1 changed files with 2 additions and 2 deletions
|
@ -97,13 +97,13 @@ export default class SpaceInvaders implements ICanvasEffect {
|
||||||
this.context.clearRect(0, 0, this.context.canvas.width, this.context.canvas.height);
|
this.context.clearRect(0, 0, this.context.canvas.width, this.context.canvas.height);
|
||||||
|
|
||||||
this.lastAnimationTime = Date.now();
|
this.lastAnimationTime = Date.now();
|
||||||
this.animateAndRenderSnowflakes();
|
this.animateAndRenderInvaders();
|
||||||
}
|
}
|
||||||
requestAnimationFrame(this.renderLoop);
|
requestAnimationFrame(this.renderLoop);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
private animateAndRenderSnowflakes() {
|
private animateAndRenderInvaders() {
|
||||||
if (!this.context || !this.context.canvas) {
|
if (!this.context || !this.context.canvas) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue