toto88x Posted February 14, 2014 Share Posted February 14, 2014 Hi, Phaser does not wok on all browser versions, especially the old ones.Is there an easy way to detect when Phaser won't work on a browser? This way I can display a message like "To play this game, you need to have a more recent browser"? Thanks for your help! Link to comment Share on other sites More sharing options...
toto88x Posted February 15, 2014 Author Share Posted February 15, 2014 Any idea how to do this? Link to comment Share on other sites More sharing options...
toto88x Posted February 16, 2014 Author Share Posted February 16, 2014 And I have a related question: when doing a Phaser game, what % of users will be able to play it (co compatibility issues)? 80%? Less? More? Thanks for your help ! :-) Link to comment Share on other sites More sharing options...
Chupup Games Posted February 16, 2014 Share Posted February 16, 2014 I think because it only depends on Javascript and HTML5 Canvas (2d or WebGL), you must detect if the browser supports this. Link to comment Share on other sites More sharing options...
luschn Posted February 17, 2014 Share Posted February 17, 2014 You can just use "Modernizr" to test if the browser supports canvas:if (!Modernizr.canvas) { ...} Link to comment Share on other sites More sharing options...
toto88x Posted February 21, 2014 Author Share Posted February 21, 2014 You can just use "Modernizr" to test if the browser supports canvas:if (!Modernizr.canvas) { ...} Thanks! But is there a way to do the same using plain javascript? I don't like loading a full library just to use one function ^^ Link to comment Share on other sites More sharing options...
Secretmapper Posted February 21, 2014 Share Posted February 21, 2014 Probably not the best, but in your 'game div' you might try adding your "Please upgrade to a newer browser version" message. That way when browser doesn't have canvas support, the message appears, but if it canvas is supported, the message is overwritten by phaser. Link to comment Share on other sites More sharing options...
toto88x Posted February 25, 2014 Author Share Posted February 25, 2014 Probably not the best, but in your 'game div' you might try adding your "Please upgrade to a newer browser version" message. That way when browser doesn't have canvas support, the message appears, but if it canvas is supported, the message is overwritten by phaser. I made a few test, and it doesn't seem to work. Any other idea? Link to comment Share on other sites More sharing options...
Secretmapper Posted February 25, 2014 Share Posted February 25, 2014 I made a few test, and it doesn't seem to work. Any other idea? What do you mean it doesn't seem to work? Link to comment Share on other sites More sharing options...
Recommended Posts