1. Home
  2. Docs
  3. In-game implementation
  4. Haxe in-game API

Haxe in-game API

Get latest stable version

haxelib install ldtk-haxe-api

Add the library to your HXML

Add the following line to your main HXML file:

-lib ldtk-haxe-api

Using latest Git version (NOT recommended)

It is NOT recommended to use the Git version, unless you are also using a version of LDtk built from latest Git source code.

haxelib git ldtk-haxe-api https://github.com/deepnight/ldtk-haxe-api.git

Important: the branch used for the LDtk repository should match the branch for LDtk Haxe API repository! So if you’re using branch dev-0.7.0 on LDtk repo, you should also use the same branch on ldtk-haxe-api, if it exists (master, otherwise):

haxelib git ldtk-haxe-api https://github.com/deepnight/ldtk-haxe-api.git dev-0.7.0