cjke Posted February 21, 2016 Share Posted February 21, 2016 Congrats, good work man! Link to comment Share on other sites More sharing options...
in mono Posted March 7, 2016 Share Posted March 7, 2016 Is there something wrong with Phaser.Create? It's missing from phaser.d.ts in 2.4.6. Link to comment Share on other sites More sharing options...
rich Posted March 7, 2016 Author Share Posted March 7, 2016 This one? https://github.com/photonstorm/phaser/blob/master/typescript/phaser.d.ts#L733 Link to comment Share on other sites More sharing options...
in mono Posted March 8, 2016 Share Posted March 8, 2016 15 hours ago, rich said: This one? https://github.com/photonstorm/phaser/blob/master/typescript/phaser.d.ts#L733 Yeah, the class itself is there, but there's a missing reference in Game (https://github.com/photonstorm/phaser/blob/master/typescript/phaser.d.ts#L1324). It's working, but TypeScript is whining because there's no such property. If I manually add create: Phaser.Create; inside Game, it's all well. Is there something changed? Is there a reason not to access Phaser.Create via this.game.create? Link to comment Share on other sites More sharing options...
Huggabear Posted April 28, 2016 Share Posted April 28, 2016 On 3/7/2016 at 1:48 PM, in mono said: Yeah, the class itself is there, but there's a missing reference in Game (https://github.com/photonstorm/phaser/blob/master/typescript/phaser.d.ts#L1324). It's working, but TypeScript is whining because there's no such property. If I manually add create: Phaser.Create; inside Game, it's all well. Is there something changed? Is there a reason not to access Phaser.Create via this.game.create? The missing type descriptor for Game.create is still an issue in phaser.d.ts version 2.4.7, easy fix but takes a long time before finding the way to this page and mono's very nice solution (Thank you mono). Link to comment Share on other sites More sharing options...
Recommended Posts