7 years ago by ola_soubra
Hi every one
Is there any trick to make my game fit all android mobiles size and tablets ?
Is there any trick to make my game fit all android mobiles size and tablets ?
This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact
var canvas = document.getElementById('canvas'); canvas.style.width = window.innerWidth + 'px'; canvas.style.height = window.innerHeight + 'px'; window.addEventListener('resize', function() { if (!ig.system) { return; } canvas.style.width = window.innerWidth + 'px'; canvas.style.height = window.innerHeight + 'px'; }, false);