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.
This commit is contained in:
David Négrier 2021-02-02 12:04:50 +01:00
parent 3a046cb450
commit e757d63924

View File

@ -84,6 +84,11 @@ const config: GameConfig = {
dom: {
createContainer: true
},
render: {
pixelArt: true,
roundPixels: true,
antialias: false
},
physics: {
default: "arcade",
arcade: {