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 Gamma

I recently downloaded Mamp, and placed the impact folder with all my entities and such into the htdocs directory, I then clicked on "index.html" and the game didn't load at all. Is there something I did wrong? Can anyone give me any suggestions or anyway to fix this. Thanks in advance.

1 decade ago by xOpti

You need to navigate to localhost/{folder your project is in}/index.html. If you have something like skype or IIS installed, you may need to change the port number for wamp. I'll check back in the morn when I'm sober.

Good Luck and Happy Programming!

1 decade ago by coreysnyder

Hmmm... Mamp or no Mamp, clicking on your games html file should load just fine. Are you seeing the loading screen at least? Or do you get a 404 or page now found? I'd open it it chrome & get your javascript error log open so you can see if any JS errors are happening.

1 decade ago by Gamma

@coreysnyder: I see the loading screen, but I it just won't load. I recently took a usb, and copied the impact folder from my Wamp on PC, and then placed that same folder in Mamp on the mac. Your right though, I should check the error log, I'll tell you the results as soon as I come back from a student orientation...it's gonna be awhile. I hope you guys standby and continue to help.

P.S. Was I suppose to place my files in IOSimpact? or was taking my ordinary impact folder from my PC a good idea?

1 decade ago by Gamma

I got these errors:

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

1 decade ago by coreysnyder

Are you sourcing your images from an internet source? For instance the images should be in your media folder and referenced like so:
animSheet: new ig.AnimationSheet( 'media/player.png', 16, 24 )

You aren't doing this are you:
animSheet: new ig.AnimationSheet( 'http://www.randomsite.com/player.png', 16, 24 )

That's what I think of when I see cross-origin data.

Also, make sure you can access the images on your localhost. If you can't, you may need to update the permissions on the images/media folder to allow the game access to them.

That's all I got..

1 decade ago by Gamma

Found it! I've been click the url in the wrong folder. Thanks for the support guys. And sorry about the accident, I wasn't thinking right lol.

1 decade ago by Gamma

I was wondering,....since I'm using the wi-fi with everyone on campus...can they access my localhost ONLY if I gave them all the link? or would they find a way in?
Page 1 of 1
« first « previous next › last »