haden

Anyone using Haxe ?

Recommended Posts

Hi there,

 

I am using Haxe NME to make my first Html5 game and I wanted to know if there are other developers who are using Haxe to make there games. Specifically, are there any problems/limitations I should be looking to when using Haxe ?

Share this post


Link to post
Share on other sites

haxe is excellent to target flash / windows / android and iOS but it's very bad when it comes to HTML5

if your game use lot of Sprites you'll get horrible performance , this is due to the fact that haxe create a canvas object for each Sprite, so you end up with too many canvas

if you feel confortable with how haxe handles things use Pixi.js it's very close and use almost the same logic

Share this post


Link to post
Share on other sites

haxe is excellent to target flash / windows / android and iOS but it's very bad when it comes to HTML5

if your game use lot of Sprites you'll get horrible performance , this is due to the fact that haxe create a canvas object for each Sprite, so you end up with too many canvas

if you feel confortable with how haxe handles things use Pixi.js it's very close and use almost the same logic

Thanks Ezelia, I guess I will stick with Phaser then as I am used to Flixel.

Share this post


Link to post
Share on other sites

And maybe also when I do know Haxe and don't know TypeScript :)

Also a lot of my code, I might reuse, is in Haxe. Using Haxe will also make it easier to port the games if I will need to someday.

Does TypeScript have better performance than Haxe or why would I want to use one over another?

Share this post


Link to post
Share on other sites

I started using HaXe Nme (mainly because of flash ). It's a wonderful framework. The worst thing is its support. 

 

Despite singmajesty efforts, the majority of questions don't get an answer (or at least don't get an answer that solves the doubts ).

 

Again, HaXe/NME is a great framework and if you fell comfortable digging into source code and figure solutions by yourself, it's the best tool you can pick.

 

singmajesty is a very valuable guy into Haxa NME community.  I'd like there were more guys like him.

Share this post


Link to post
Share on other sites

haxe is excellent to target flash / windows / android and iOS but it's very bad when it comes to HTML5

if your game use lot of Sprites you'll get horrible performance , this is due to the fact that haxe create a canvas object for each Sprite, so you end up with too many canvas

if you feel confortable with how haxe handles things use Pixi.js it's very close and use almost the same logic

I think you're confusing haxe with openfl, haxe is the language, openfl is the framework to display stuff with the flash API.

You could use haxe to make games with whatever js library you have and probably get better performances (or at least spending less time to write the code).

Also I'd advice to check out flambe, it's really easy to start with and has good performances (the game i'm making works on mobile without big problems).

Share this post


Link to post
Share on other sites

To some extent, yes. Game-side logic (such as entity/component management) would have to come from other sources though.

Thanks, do you have any playable game example? I tried to build NME's example PiratePig with bitfive backend, compiled ok but as a result I got white screen with some broken symbols and sprites:)

Share this post


Link to post
Share on other sites

Thanks, do you have any playable game example? I tried to build NME's example PiratePig with bitfive backend, compiled ok but as a result I got white screen with some broken symbols and sprites:)

I haven't made any separate examples (though I may soon), but most HaxePunk examples run quite fine with no or little modifications. Other than that, bitfive is primarily intended for use with applications and frameworks that use a single (or a few) Bitmap objects to represent the game on screen. This also is the preferred way of building games for mobile, since older devices are not able to handle too much dynamic DOM objects at once.

One other thing to watch out while building is that you also need to provide OGG versions of audio files for game to work correctly in browsers without direct MP3 support (such as slightly earlier versions of Firefox).

I just used createjs, worked quite good. There are even externs already made for it.

CreateJS is indeed pretty good, but still problematic to use if you want to target both Flash and HTML5 from single codebase.

Share this post


Link to post
Share on other sites

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

  • Recently Browsing   0 members

    No registered users viewing this page.