News for hackers. Stuff that matters.
Re:Superpowers, a collaborative HTML5 2D and 3D game maker, ... by seivan on Monday January 11, 2016 @04:05PM (#10883528)
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(?).

Re:Superpowers, a collaborative HTML5 2D and 3D game maker, ... by elisee on Monday January 11, 2016 @04:12PM (#10883605)
We 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-build.... It looks like he's decided to go with Babel for Phaser 3 / Lazer: https://github.com/photonstorm/lazer

Re:Superpowers, a collaborative HTML5 2D and 3D game maker, ... by chei0aiV on Tuesday January 12, 2016 @02:03AM (#10885985)
At some point WebAssembly will mean you can rewrite it in any language.
Re:Superpowers, a collaborative HTML5 2D and 3D game maker, ... by danbolt on Tuesday January 12, 2016 @02:46AM (#10886097)
Agreed 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.

Re:Superpowers, a collaborative HTML5 2D and 3D game maker, ... by seivan on Tuesday January 12, 2016 @05:48AM (#10886621)
It's an issue with projects in general. Phase and type definitions aren't always one to one in most libraries. Even React.
Re:Superpowers, a collaborative HTML5 2D and 3D game maker, ... by danbolt on Thursday January 14, 2016 @10:17AM (#10901851)
I feel like TypeScript users get a lot of oppurunties to submit small pull requests for JavaScript libraries, then.