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 cristian

Someone has integrated games in phonegap?
to use impact you need to have a web server and phonegap does not include a web server, they wrapp native calls using a hack.

1 decade ago by fugufish

i used appMobi (it's a phonegap running on the cloud), and a simple drag drop of the Impact folder into the appMobi folder worked!

the guys at appMobi are working on it
http://www.appmobi.com/index.php?q=node/118

1 decade ago by dominic

Only the level editor, Weltmeister, really needs a webserver. The games also run without a webserver in IE9, Opera and Safari - including Mobile Safari. So it works with PhoneGap as well.

Boring explanation: The only reason that the games don't work with Chrome and Firefox without a webserver, is because of their (imho) flawed implementation of the "same origin policy".

When you want to access pixel data of an image, this image has to be loaded from the same domain as the script, otherwise the browser will throw a security error. Now, when you load an image from file://some/folder/image.png there is no "domain" and thus the security check always fails.

IE9, Opera and Safari use the current folder as the "domain" when running on a file:// URL and can load these games without a problem.

1 decade ago by cristian

I'm using Chrome to develop, and Firefox, that's why doesn't work for me :)
Thanks for your help.

1 decade ago by anaish

When you want to access pixel data of an image, this image has to be loaded from the same domain as the script, otherwise the browser will throw a security error


would this help?

http://www.html5rocks.com/en/tutorials/file/filesystem

1 decade ago by paulh

wampserver or xampp?
Page 1 of 1
« first « previous next › last »