spinnerbox Posted March 26, 2015 Share Posted March 26, 2015 Hello. I plan to support five browsers with my game: 1. Chrome the latest (it installs its update automatically) 2. Firefox 343. Opera 264. Safari 5.1.7, doesn't play mp3 audio files if there is no Quicktime installed on the client computer 5. IE9, plays mp3 My game doesn't need 3D or video or some other advanced features. I selected these options when generating Modernizr file 1. applicationCache,2. Canvas3. CanvasText4. HTML5 Audio5. localStorage for saving game data for later use6. sessionStorage My question is, are there any other features that I should detect with Modernizr that phaser includes with itself? Link to comment Share on other sites More sharing options...
rich Posted March 26, 2015 Share Posted March 26, 2015 It's honestly pointless using Modernizr to check for Canvas, Canvas Text or Audio support - Phaser checks all of these things for you automatically and uses the right audio system accordingly. Equally if the browser doesn't support canvas your game won't run anyway - not even a little bit - so it's something you probably ought to capture on a page level and redirect them before they even experience that? Link to comment Share on other sites More sharing options...
spinnerbox Posted March 26, 2015 Author Share Posted March 26, 2015 Nice thing to hear. That means I don't have to bother with these checks, except maybe provide support information on the page itself Link to comment Share on other sites More sharing options...
rich Posted March 26, 2015 Share Posted March 26, 2015 Have a look at the Device class - there are lots of things it checks for! Link to comment Share on other sites More sharing options...
Recommended Posts