Skip to content

Instantly share code, notes, and snippets.

@pjnovas
Last active August 29, 2015 14:02
Show Gist options
  • Save pjnovas/859581a5d08f5e210cbd to your computer and use it in GitHub Desktop.
Save pjnovas/859581a5d08f5e210cbd to your computer and use it in GitHub Desktop.
Install Haxe and HaxePunk

Install HAXE 3.1.1 since 3.1.3 (latest right now) won't work with OpenFL

  1. Go to Haxe
  2. Download Haxe Lib for windows
  3. Run Installer
  4. open terminal and try haxe -version

Hello World

  1. Create a file named HelloWorld.hx
  2. Paste following code
class HelloWorld {
  static public function main():Void {
    trace("Hello World");
  }
}
  1. at terminal run:
haxe -main HelloWorld --interp
  1. Compile to other target:
haxe -main HelloWorld -js helloWorld.js

More Info

haxelib install HaxePunk 
haxelib run HaxePunk setup

Last command will install lime and openfl too

  • Create a new project
haxelib run HaxePunk new MyProject
cd MyProject
  • Setup Lime target Windows
haxelib run lime setup windows
haxelib run lime test windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment