Blank101

Using Phaser with Haxe

33 posts in this topic

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. :)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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? :)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.