Jump to content

Using Phaser with Haxe


Blank101
 Share

Recommended Posts

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

Link to comment
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.

Link to comment
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.

Link to comment
Share on other sites

  • 3 weeks later...

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.

Link to comment
Share on other sites

  • 3 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...