Blank101 Posted April 24, 2017 Author Share Posted April 24, 2017 Although I haven't had a chance to update this project in a bit, it should still be usable. Last I updated it was to 2.4.6 and the current Phaser is 2.7.7. You can likely just use the newest version of Phaser as long as the API hasn't changed too much. Pull requests are also always welcome. Quote Link to comment Share on other sites More sharing options...
totor Posted April 27, 2017 Share Posted April 27, 2017 I can't make it to work. i have haxe 3.x + dox, i built js2hx, ok and i use it with neko on empty dir : it works, nothing is produced of course then i try with one js file in a dir or the full phaser 2.4.6 dir and the tool stalls at 'parsing AST' could you give a full working step by step so i figure where i failed? Thank you. Quote Link to comment Share on other sites More sharing options...
Blank101 Posted April 28, 2017 Author Share Posted April 28, 2017 You do not need to build the externs to use them. You can just run this command to download the latest externs off haxelib: haxelib install phaser Then include it in your build: haxe -lib phaser ... You can then include the latest Phaser version in your .html file and you should be good to go. Quote Link to comment Share on other sites More sharing options...
Antriel Posted May 16, 2017 Share Posted May 16, 2017 I wrote some ugly ugly code to generate externs from TS definitions. It still has issues but seems like it works: https://github.com/Antriel/phaser-ts2hx Also wrote a small blog post about the process https://antriel.com/post/phaser-haxe-externs/ ozdy 1 Quote Link to comment Share on other sites More sharing options...
Blank101 Posted May 16, 2017 Author Share Posted May 16, 2017 Antriel - This is great! The typing looks a lot better than what came out of my js2hx project. Are you interested in maintaining the Haxe Phaser library? I haven't had time to do it as of late. If you're game I'll add you as a contributor and we can switch over to your generator as I expect it will produce more maintainable results in the long-term. Quote Link to comment Share on other sites More sharing options...
Antriel Posted May 16, 2017 Share Posted May 16, 2017 Well you could just use the generator yourself, but I guess I could do it if you don't want to. I guess I would just commit new phaser externs and tag them with phaser version? Or what's the intended usage for your repo? Quote Link to comment Share on other sites More sharing options...
Blank101 Posted May 16, 2017 Author Share Posted May 16, 2017 I've added you as a contributor. You can push your build to the auto_builds branch in the src/phaser directory. I can deal with the rest. Thanks. Quote Link to comment Share on other sites More sharing options...
tywang2006 Posted May 18, 2017 Share Posted May 18, 2017 haxe is very similar to actionscript. if you were a flash developer, you will easily pick up. the process to manage assets or development will be same as what you were doing with starling. Quote Link to comment Share on other sites More sharing options...
b10b Posted June 6, 2017 Share Posted June 6, 2017 @Antriel and @Blank101 I just wanted to say thanks for producing and maintaining externs for others to use - a rather tedious and thankless task, so *thanks*! ozdy and Antriel 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.