From 6a650203f96f71f5518ea0f78cbe924e78d60e15 Mon Sep 17 00:00:00 2001 From: Nulo Date: Thu, 1 Jul 2021 21:18:44 +0000 Subject: [PATCH] Desactivar smoothing --- src/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.ts b/src/main.ts index 492230e..2b6a37a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -48,6 +48,8 @@ function update(juego: Juego, dt: number) { function draw(juego: Juego, 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";