improve the visual of the cowebsite

This commit is contained in:
kharhamel 2021-03-17 11:52:41 +01:00
parent 3f6c61633a
commit 272be3eba0
4 changed files with 73 additions and 38 deletions

View file

@ -118,7 +118,7 @@ window.addEventListener('resize', function (event) {
}
});
coWebsiteManager.onStateChange(() => {
coWebsiteManager.onStateChange.subscribe(() => {
const {width, height} = coWebsiteManager.getGameSize();
game.scale.resize(width / RESOLUTION, height / RESOLUTION);
});