Jump to content

IE8 and Shiv


Monstamash
 Share

Recommended Posts

Hi All

 

Does anyone know if you can get Phaser games to work on IE8 using Shiv?

 

I have included script in my header

<!--[if lt IE 9]>        <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->

But i just get errors in console

 

SCRIPT445: Object doesn't support this action 
phaser.js, line 1010 character 1
SCRIPT5009: 'Phaser' is undefined 
index.html, line 30 character 5
 

 

Link to comment
Share on other sites

Well, there is a shim named excanvas, that works suprisingly well. Turns out that IE had something like the canvas tag since version 6 (yes, IE6) but nobody really used it since it was a properitary microsoft standard.

 

Well, the JS lib creates a bridge and creates a virtual canvas API that connects to VML and is able to do the most stuff you would be doing on a modern canvas element.

 

Give it a try - it might work - I used it in some web projects where graphs needed to be rendered and it worked fine. I sadly have no idea how it will work together with canvas and how it generally performs in games.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...