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:
parent
3a046cb450
commit
e757d63924
@ -84,6 +84,11 @@ const config: GameConfig = {
|
|||||||
dom: {
|
dom: {
|
||||||
createContainer: true
|
createContainer: true
|
||||||
},
|
},
|
||||||
|
render: {
|
||||||
|
pixelArt: true,
|
||||||
|
roundPixels: true,
|
||||||
|
antialias: false
|
||||||
|
},
|
||||||
physics: {
|
physics: {
|
||||||
default: "arcade",
|
default: "arcade",
|
||||||
arcade: {
|
arcade: {
|
||||||
|
Loading…
Reference in New Issue
Block a user