From e757d63924b1a1d6ad34d1263f180dad79457cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Tue, 2 Feb 2021 12:04:50 +0100 Subject: [PATCH] Switching Phaser to pixelart mode To be honest, I'm not sure what it does exactly (it is supposed to prevent antialiasing and it is rounding coordinates for rendering sprites, but I don't see a difference yet. --- front/src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/front/src/index.ts b/front/src/index.ts index 4a3555b0..94b1df43 100644 --- a/front/src/index.ts +++ b/front/src/index.ts @@ -84,6 +84,11 @@ const config: GameConfig = { dom: { createContainer: true }, + render: { + pixelArt: true, + roundPixels: true, + antialias: false + }, physics: { default: "arcade", arcade: {