Desactivar smoothing
This commit is contained in:
parent
d340d4168c
commit
6a650203f9
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,8 @@ function update(juego: Juego<any>, dt: number) {
|
|||
function draw(juego: Juego<any>, timestamp: number) {
|
||||
const { width, height } = juego.canvas;
|
||||
|
||||
juego.ctx.imageSmoothingEnabled = false;
|
||||
|
||||
juego.ctx.fillStyle = "white";
|
||||
juego.ctx.fillRect(0, 0, width, height);
|
||||
juego.ctx.fillStyle = "black";
|
||||
|
|
Loading…
Reference in a new issue