Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Fixing the resize problem was easy I just added this.

window.addEventListener('resize',

function() {

    canvas.width = innerWidth;

    canvas.height = innerHeight;

});

https://codepen.io/portree-maths-tutor/pen/bGozywa?editors=0010