Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by tangxuanli

Help!!!
Hi guys,I am using impact js to develop one sample game,then I am try to access the game from local not from server.but the chrome gave me the error.

Unable to get image data from canvas because the canvas has been tainted by cross-origin data.
Uncaught Error: SECURITY_ERR: DOM Exception 18

this means that,If I am trying to use phonegap to make the game natively ,it will also not work.

Can any guys help me on this?really appreciated...thanks..

1 decade ago by KenD

In order to develop a game in Impact, it must be run through a web server. This is due to restrictions/browser bugs on loading content when accessed via the file:// protocol. Dominic explains this in the Getting Started guide. If you use the level editor, you need PHP anyway. There are tons of very easy ways to get a local server running.

As for PhoneGap and the like, I believe the JavaScript environment they run in bypasses that problem. It's basically acting as a browser, and since the restriction is browser-based, you shouldn't have to worry about it.

1 decade ago by tangxuanli

thank you ,can you share your email to me..thank you,
you are really master of impact js...
My email
tangxuanli66@yahoo.com.cn
I am chinese ~~~~~~~~
Page 1 of 1
« first « previous next › last »