Building for OS X

Targeting OS X is also very simple. It requires that you have Xcode installed, which we covered in Chapter 1, Getting Started. You do need to have a Mac computer running OS X in order to build the game for OS X.

To build your game, run this command:

lime test mac -release

This will build and run an OS X version of the game. The application is located in the bin folder under export/mac64/cpp and will be named StarWalrus.app. It's self-contained so that one file alone can be distributed.

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.