Hi,
I use the pixelArt effect as you can see above:
const my_game = {
init: () => {
var config = {
// type: Phaser.WEBGL, //android
type: Phaser.CANVAS, //pc
width: data.w,
height: data.h,
backgroundColor: '#222222',
parent: 'phaser-example',
pixelArt: true,
physics: {
default: 'arcade',
arcade: {
fps: 60,
gravity: {
y: 0,
x: 0,
},
debug: false,
}
},
callbacks: {
postBoot: function (game) {
game.canvas.style.width = '100%';
game.canvas.style.height = '100%';
}
},
scene: [Boot, Splash, First_screen, Test, Main]
}
if (is_mobile) {
config.type = Phaser.WEBGL
game = new Phaser.Game(config);
} else {
config.type = Phaser.WEBGL
game = new Phaser.Game(config);
}
},
}
The strange thing is that my spritesheet have 2 pixel dark on the side (hair) on my game
But in reality my spritesheet.png don’t have this 2 pixel dark on the side (hair)
I reproduce this with every spritesheet, it’s not due to this spritesheet !
Why could i do to avoid this ?