1 decade ago by roger
Hi,
I'm drawing a big backgroundMap and It's drawing with no problem in Firefox but I get an error when i play the game in iPhone. This errors says: "DOM Exception 1: Index or size was negative, or grater than the allowed value".
And the error comes from impact/image.js
This is not happening when I put 10 in tilesize but obviously I don't see all the image...
Is there any limit for the tilesize?
see down my code:
Thanks!
I'm drawing a big backgroundMap and It's drawing with no problem in Firefox but I get an error when i play the game in iPhone. This errors says: "DOM Exception 1: Index or size was negative, or grater than the allowed value".
And the error comes from impact/image.js
This is not happening when I put 10 in tilesize but obviously I don't see all the image...
Is there any limit for the tilesize?
see down my code:
this.tempBackground = new ig.BackgroundMap( 640, this.dataBackground, "media/1c.png"); this.tempBackground.setScreenPos( 0, 0 ); ... this.tempBackground.draw();
Thanks!