I am making a game with a new style of graphics from blackthornprod on youtube and when I draw my background on the Gimp then add it to the game with the same proportions, I mean letting the proportions of the Gimp by default (640x400) and changing it in my Itch game the background is not centered
game = new Phaser.Game(640, 400, Phaser.CANVAS, 'example', { preload: preload, create: create});
<style>
body {
margin: 0;
padding: 0;
background-color: #e5e5e5;
}
canvas {
display: block;
margin: auto;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
</style>
If someone have an idea on how to fix that