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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.