haXe your flash, sdl, javascript friend :)

Hi all,

As a first part of my postmortem I just wanted to tell you about a language we used with two of my friends (ben & deepnight) during the competition : haXe.

The language itself is easy to learn and has many powerful features that make it a strong one. (link to doc)

It features a very complete API and multiplaftorm target. with the same language, using the same API, you can generate swf files, javascript code, C++ code, PHP code, C# and java coming soon.

Extending the language is pretty easy, so you can use your favorites game API (sdl for instance). And you can target specific platforms like android or iphone. Which means that with a single codebase you can quite make a game works on several platform…

So all the javascript I created has been generated with haxe. And the flash games of my friends too. We’ve been using the language for a few years now at motion-twin and it has enabled us to code fast, easy and switch platform whenever we wanted.

Of course, you can use the language on windows, linux or MacOSX (intel), the generated content will be the same.

So to finish this first post-mortem, I can tell you that having a strong typed language helped  me create my javascript project without worrying  too much. No js nightmare debugging at all !

Last but not least, it’free  and open source :) That was my fifty cent to rapid development 😉 (not a commercial, just my tribute to one of my favorites language, that’s all )

Comments

Devenger
22. Dec 2010 · 15:22 UTC
Interesting, thanks for the post. The cross-platform stuff sounds particularly good. Will give it a look at some point.
22. Dec 2010 · 16:50 UTC
I’ve tried haXe for flash before and liked it. Will have to deal with the process of getting Sam HaXe installed (I prefer is over SwfMill), which requires lots of fiddling with directories, but I’ll definitely look at that.
whitetigle
23. Dec 2010 · 01:56 UTC
In my case, I’ve being doing games for quite a long time at motion-twin using haxe for server app, flash client,, ajax and js stuff and lately c++ stuff. The fact that I didn’t have to learn a new language for each layer and that I could use quite the same api has been a real booster.