Desactivar smoothing

This commit is contained in:
Nulo 2021-07-01 21:18:44 +00:00
parent d340d4168c
commit 6a650203f9
1 changed files with 2 additions and 0 deletions

View File

@ -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";