Ensure browser compatibility

  • What is the best way to ensure browser compatibility with the audio and webgl? I've toyed around with the idea of checking the useragent string against the list of strings I found online but that would be a lot of lines of or conditions. Is there a simple way to verify that the user has say chrome 9.0+? I want to check this at startup and if an incompatible browser is found I want to display a link to one of the approved browsers.

    Thanks in advance,

    Lance

  • I "think" you can use the SYSTEM EVENT "Effects are Supported". Then (if true) add the ACTION to go to your game layout. If not, then load a layout that says something like "This game uses WebGL effects, please use a browser that supports WebGL such as Chrome" - with a nice link or something.

    I am going to try that as I only want my game to run with WebGL effects.

    Not sure if his will help with your audio "check list" - but maybe it will get you closer. <img src="smileys/smiley1.gif" border="0" align="middle" />

    There is probably something in the CSS/HTML/Index file that could be modified too - but that is beyond my skill set. lol

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You should definitely avoid telling people they can't play the game if possible - performance may be worse and audio support may be more basic, but you should still let them play the game.

    If your game absolutely must have WebGL effects to even work at all, use the "Effects supported" system condition.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)