Monstamash Posted December 9, 2013 Share Posted December 9, 2013 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 1SCRIPT5009: 'Phaser' is undefined index.html, line 30 character 5 Link to comment Share on other sites More sharing options...
rich Posted December 9, 2013 Share Posted December 9, 2013 No it won't work on IE8. Even if you could get around the issues with Object.defineProperty, IE8 doesn't support canvas at all. There are no plans to support native DOM elements instead of Canvas at this point, it's just not the direction the market/technology is going. Link to comment Share on other sites More sharing options...
Monstamash Posted December 9, 2013 Author Share Posted December 9, 2013 Thanks for confirming. I kind of thought this might be the case. Link to comment Share on other sites More sharing options...
Chris Posted December 9, 2013 Share Posted December 9, 2013 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 More sharing options...
Recommended Posts