「Haxe Support」はDefoldゲームエンジンで Haxe コードを記述するためのライブラリです。
アセットページ
必要なもの
準備
- Install this library (from this repo):
haxelib git hxdefold https://github.com/hxdefold/hxdefold - Run
haxelib run hxdefold initinside your Defold project. It will create a sampleHello.hxscript component class and abuild.hxmlfor building it. - Read the comments in these files to quickly get some idea.
- Build with
haxe build.hxmlto get the lua output. - Add
Hello.scriptto your game object in the editor and observe the greeting in the debug console. - Proceed with writing well-structured, expressive and type safe code for your Defold game.
サンプル
流れるテキストの表示サンプルを確認することが出来ます。