Back A quick guide to installing Haxe + Heaps 1 | ♥ 1

For this guide, I will presume that all Haxe related files will be installed in the c:\haxetools\ directory. Make sure to update the paths if you install your files somewhere else!

Getting all the necessary files

  1. Haxe compiler: https://haxe.org/download/list/ (pick the “latest stable” or a “Release Candidate” or “RC”). Unzip the files in a folder somewhere on your harddrive, like c:\haxeTools\haxe.
  2. HashLink: https://hashlink.haxe.org/#download (“latest binary release”). Unzip the files in a specific folder, like c:\haxeTools\hl.
  3. NekoVM: https://nekovm.org/download/ (pick the “binary” matching your system). Unzip all files in a specific folder, like c:\haxeTools\neko.

Setting the system stuff

You must add all the following folders to your PATH environment variable (how?).

  • Haxe folder (eg. c:\haxeTools\haxe)
  • HashLink folder (eg. c:\haxeTools\hl)
  • Neko folder (eg. c:\haxeTools\neko)

Does it work?

  • Open a command line,
  • Type haxe, you should see something like that:
  • Type neko:
  • Type hl:

If you get an “unknown command” error, you should try checking each command by typing:

  • where haxe
  • where hl
  • where neko

If one of these returns a “not found” error, you should double-check your PATH.

Installing important Haxe libraries

  • Open a command line
  • Run the following commands:
    • haxelib setup (when prompted, point to a /lib folder in your Haxe folder, ie. c:\haxeTools\haxe\lib)
    • haxelib install hldx
    • haxelib install hlsdl
    • haxelib install format
    • haxelib install castle
  • You can check the installed libs by typing: haxelib list

Installing Heaps

  • Open a command line
  • Run the following commands:
    • haxelib install heaps
    • haxelib install deepnightLibs (optional, but contain some useful things I use a lot when making Heaps based games)
  • You can check the installed libs by typing: haxelib list

Working with VSCode

VSCode is the easiest approach to work with Haxe+Heaps. To use it:

  1. Install VSCode (well, obviously)
  2. Install the Haxe extension pack from the Extension panel of VSCode.

Leave a Reply

Your email address will not be published.

  1. kynan:

    This is awesome, Thanks.

    February 14, 2020 at 14:17