spinnerbox

Using Modernizr for browser feature detection

Recommended Posts

Hello. I plan to support five browsers with my game:

 

1. Chrome the latest (it installs its update automatically) 

2. Firefox 34

3. Opera 26

4. 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. Canvas

3. CanvasText

4. HTML5 Audio

5. localStorage for saving game data for later use

6. sessionStorage

 

My question is, are there any other features that I should detect with Modernizr that phaser includes with itself?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.