4 ms·
Awesome, it uses TypeScript. Biggest reason I avoid Phaser is because it's always short on type definitions, especially at updates. Nice to see this being writ
by seivan 11y ago
Awesome, it uses TypeScript. Biggest reason I avoid Phaser is because it's always short on type definitions, especially at updates.
Nice to see this being written from scratch in TS(?).
- elisee 11y agoWe actually started with CoffeeScript 15 months ago, because TypeScript wasn't quite far along yet (I don't quite remember why, but we definitely considered it and said "maybe later"). We also started by writing our own scripting language for games... and then after a few months of development we converted the whole codebase to TypeScript and we haven't looked back ^_^ Seems like Phaser's developer initially considered TypeScript but felt it was too early at the time too: http://www.html5gamedevs.com/topic/13599-reconsidering-building-phaser-3-in-typescript/ http://www.html5gamedevs.com/topic/13599-reconsidering-build.... It looks like he's decided to go with Babel for Phaser 3 / Lazer: https://github.com/photonstorm/lazer https://github.com/photonstorm/lazer
- chei0aiV 11y agoAt some point WebAssembly will mean you can rewrite it in any language.
- danbolt 11y agoAgreed on TypeScirpt being awesome! I'm happy SuperPowers decided to encourage it. Does Phaser tend to overlook type definition updates? I know the language has TypeScript files, but I wasn't aware that they tended to be lacking. I use Phaser with ES6 a lot, but I'd be keen to use TypeScript.