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 UltimateBrent

I'm having some trouble making my iOS impact project accesible from the browser. The " if ( ios) " lines all throw 'ios' is not defined errors. The ios plugin also throws errors obviously because there's no native object.

Is there an easy way to detect whether or not I'm in a browser or iOS so I can not include that plugin and set ios to false manually?

1 decade ago by UltimateBrent

So 5 minutes later, I figured it out. Here's what I did in case anyone else has issues:

Replace the plugin line with
(window.ios) ? 'plugins.ios.ios' : 'impact.game'

Doesn't really matter what you include, i just reincluded the game.

Before the if( ios) sound line in main.js
if(!window.ios) ios = false;
Page 1 of 1
« first « previous next › last »