Setting up Visual Studio Code for Haxe Development - Hello World on Mac

Was thinking of doing some game development after 6 years. Got a lot of hope seeing how Haxe and OpenFL seemed to provide solutions for old AS3 projects.

But just to get the Haxe 'hello world' running on VS Code on my Mac wasn't documented anywhere.

So I'm writing it here hoping it helps some others.

  1. First install Haxe on your Mac (normal installer). I didn't know how to use the binaries alone.
  2. Get VSCode
  3. Install the Haxe and Lime extensions on VSCode.
  4. Open a new project folder, create a file called Main.hx.
  5. Paste the code given from this page.
  6. Next create a file with .hxml extension in the same folder and paste two lines of code shown in the screenshot below. (more info).
  7. Click 'Run without debugging'
  8. See the output in the debug console below (not terminal or output tab)




Next I'm off to getting an entire old AS3 project with SWF assets working. If I succeed I'll post more.

Comments

Popular posts from this blog

DoTween - The Big Demo

Download Android SDK standalone for offline installation

Bejeweled, Candy crush like Match-3 game clone source code jam