I tried to change the layout of the eat'm all example and move it in the center of 1920x1080.
If the maze is centered, the movements of the ghots are off but if I offset the maze by 32 pixels (letfward or rightward), they are moving perfectly.
Do you know why there is this offset or why I can't center it on a new format?
I don't know if it is the correct place to post it.
the game uses a grid based on a tile size of 48 pixels, so all the walls of the maze must be a multiple of 48 from the left edge. Setting the layout size to 1920 x 1080 and moving everything to the middle puts the walls half way between that 48 pixel grid. so moving everything 24 pixels left or right will get things lined up correctly and it will work.
Develop games in your browser. Powerful, performant & highly capable.
Thank you AllanR
Funny, it's what I was thinking as well but not sure.