Shana Posted March 5, 2014 Share Posted March 5, 2014 Hi guys. Today I tried using phaser with TypeScript, and it simply doesn't works at all.... First problem : "Could not find symbol 'Phaser' " => So I tried to use "import Phaser = require('phaser.d'); . So I had to use "Phaser.Phaser.Game" (For an example), so normaly, it works... Second problem : I have just a f**king black screen, even by copying and pasting the tutorial, I have just a black screen. So, i'm alone to have these problems ? Thanks. Link to comment Share on other sites More sharing options...
Shana Posted March 6, 2014 Author Share Posted March 6, 2014 Solved. I've just added " /// <reference path="phaser.d.ts" /> " on the top of the file, and it works great. Link to comment Share on other sites More sharing options...
pat Posted March 6, 2014 Share Posted March 6, 2014 thanks a lot Shana, I had exactly the same problem with Webstorm and TypeScript.You save my day. Patrick Link to comment Share on other sites More sharing options...
Shana Posted March 6, 2014 Author Share Posted March 6, 2014 Ahah, no problem. Now I have a problem with states .Have a nice day . Link to comment Share on other sites More sharing options...
Recommended Posts