Building for Windows

Building for Windows is also very simple. In Chapter 1, Getting Started, you installed Visual Studio, which is the only thing you need to build for Windows. Keep in mind that you do need to run the Windows operating system in order to build the game.

If you're using FlashDevelop on Windows, you can just run the game by selecting the release configuration and then choosing the Windows target build.

If you're not using FlashDevelop, you can just run this command:

lime test windows -release

The build files are located in the bin folder export/windows/cpp. All of the files in that folder are needed to run the game.

Get Haxe Game Development Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.