rich Posted September 10, 2013 Author Share Posted September 10, 2013 Just to say that I've dropped building it in TypeScript entirely and it's now pure JavaScript. Follow the "March towards 1.0" thread in this forum to see how I'm getting on! Link to comment Share on other sites More sharing options...
triptych Posted September 13, 2013 Share Posted September 13, 2013 I have to say I would not be seriously looking into this library if it had typescript only support. Thank you so much for adding plain js! Link to comment Share on other sites More sharing options...
ursuletzu Posted November 8, 2013 Share Posted November 8, 2013 hi, I noticed this thread and I am asking myself if the phaser.d.ts is still maintained? There are some plain inconsistent declaration there even the game constructor is wrong.I myself want to use Typescript, and i found about Phaser following some blogs that advertise it as the first library with typescript support.Now that Webstorm supports typescript too, and more nicely than visual studio, I feel encouraged to give it a try. Coulf you guys please post what exactly were the show stoppers? Regarding Javascript i got a tweet today that sums what i think of Js: Rodney Rehm @rodneyrehmIf it quacks like a duck, but looks like a cat with a horse head, it must be JavaScript. Regards Link to comment Share on other sites More sharing options...
CrazySam Posted November 8, 2013 Share Posted November 8, 2013 Typescript doesn't make Javascript any better, it just makes the experience of programming javascript marginally better. It seems Typescript support is outdated and no longer maintained. I personally have no problem with that. If I wanted to program with an elegant statically typed language I would be using Haxe, but I want to make an HTML5 game, so I use Javascript (I know you can make an HTML5 game with Haxe + Flambe, but I wanted to check out Phaser for research purposes). It's really not that bad. Programming is programming, regardless of what language you use. I share Rich's sentiment... don't focus on what features a language does or doesn't support, focus instead on how you can use the features that the language provides in order to accomplish your goal of making a game. Link to comment Share on other sites More sharing options...
Daniel Ribeiro Posted April 22, 2014 Share Posted April 22, 2014 Hey! I started using Phaser now, and I'm so happy using TypeScript – a lot more mature, as it is a stable v1.0.0 now. Can you guys tell me if I should keep going or write everything with pure Javascript? Link to comment Share on other sites More sharing options...
Mike Posted April 22, 2014 Share Posted April 22, 2014 Once Rich told that TypeScript is cool enough for making the games but the Phaser core will stay vanilla JS. So with TypeScript hitting 1.0.0 and compile problems are cleaned also Phasertype definitions are up to date then... It all sound like a god reason to set your code base with TS. Daniel Ribeiro 1 Link to comment Share on other sites More sharing options...
jmp909 Posted September 22, 2015 Share Posted September 22, 2015 Hi... bit late to the party but wondering what the current status of this is? I'm an AS3 developer originally and I just started looking at Phaser and TypeScript, using Visual Studio Code (or Webstorm) as an IDE.... and I'm loving the intellisense/autocompletion you can get. Similar to what I had with FlashDevelop I know most people aren't using it but is someone keeping the phaser.d.ts up to date? thanksJ Link to comment Share on other sites More sharing options...
clark Posted September 23, 2015 Share Posted September 23, 2015 Yeah there are a good few of us using it (d.ts definition file). The community make PRs (but less frequently which I take as a good thing), Rich adds definitions where he can, and I often review changes a couple of times a month to mop up any stranglers. It does not have Box2D or Creature definitions yet. P2 may be slightly outdated... Aside from these features though, I would say its probably conservatively around 97% accurate!Welcome btw, I am from the same planet as you and use TS for the same reason! jmp909 1 Link to comment Share on other sites More sharing options...
rich Posted September 23, 2015 Author Share Posted September 23, 2015 The Phaser defs are very accurate. Phaser may not be written in TypeScript any longer, but the defs are maintained. Also for what it's worth some of the biggest (in terms of codebase size) Phaser games out there are developed in TypeScript (the Doctor Who Game Maker being a good example). clark and jmp909 2 Link to comment Share on other sites More sharing options...
Recommended Posts