dtc Posted February 23, 2014 Share Posted February 23, 2014 Hi everyone, I was just setting up the basic template by following the tutorial and run into this problem. Have anyone seen this?I am using Phaser 1.1.5. Many thanks in advance.- Chau. Link to comment Share on other sites More sharing options...
owenconti Posted March 2, 2014 Share Posted March 2, 2014 I also have this problem after following the Tutorial from: http://www.photonstorm.com/phaser/advanced-phaser-and-typescript-projects#commentsIt seems the Phaser.Game.prototype properties are not being applied to Phaser.Game. Link to comment Share on other sites More sharing options...
Zaidar Posted March 2, 2014 Share Posted March 2, 2014 I have no idea if it's related, but I had the same error when I created my game in JavaScript with Phaser and forgot to put the new keyword before Phaser.Game():var game = Phaser.Game();instead of :var game = new Phaser.Game()But as is it TypeScript, I've no idea how it's work. Link to comment Share on other sites More sharing options...
owenconti Posted March 2, 2014 Share Posted March 2, 2014 I have no idea if it's related, but I had the same error when I created my game in JavaScript with Phaser and forgot to put the new keyword before Phaser.Game():var game = Phaser.Game();instead of :var game = new Phaser.Game()But as is it TypeScript, I've no idea how it's work. Indeed, I was forgetting "new". All I have to say is "wow". I can't believe I forgot the new keyword lol, jeez. I spent nearly 2 hours last night dissecting Phaser.js trying to find a bug. Thank you so much! Link to comment Share on other sites More sharing options...
Recommended Posts