1 decade ago by dlkulp
it seems that setting a viewport doesn't do anything? The only way I've been able to change the scale of the game is in the:
thing. Is there another way to set the viewport to allow mobile users to have the game fit their screen or am I forced to set scale here? If changing the 1 above is the only way then why do I get this error if scale is < 1?
ig.main('#canvas', MyGame, 60, 1280, 704, 1);
thing. Is there another way to set the viewport to allow mobile users to have the game fit their screen or am I forced to set scale here? If changing the 1 above is the only way then why do I get this error if scale is < 1?
IndexSizeError: Index or size is negative or greater than the allowed amount maps-panel.js:76