|
|
|
Get Started
Once NME has been installed, you will need additional tools to target some of NME's supported platforms. For consistency, stability and quality, NME uses the standard SDKs you would otherwise use to build for each platform.
To make things easier, NME provides a "setup" command that can download and setup most of these tools for youÂ
nme setup windows
nme setup linux
nme setup android
nme setup blackberry
nme setup webos
You will need XCode installed to compile for the Mac and iOS targets.
Next Steps
You should consider getting a code editor that offers good support for Haxe programming. Support for code highlighting, code completion and other features can make a big difference. Most developers prefer FlashDevelop, but Sublime Text 2 is another popular choice. You can find more details on code editors at haxe.org.
If you are using FlashDevelop, you may also be interested in installing this project template
Some code editors provide integration with NME, but no matter which editor you choose it is easy to compile an NME project for multiple targets. While most targets are available from any desktop OS, some targets (like Windows) are only available from a single platform.
nme test windows
nme test mac
nme test linux
nme test linux -64
nme test android
nme test blackberry
nme test blackberry -simulator
nme test ios
nme test ios -simulator
nme test webos
nme test flash
nme test html5
Samples
NME includes a variety of samples you can use to get started.
Open a command-prompt or terminal and browse the directory of your choice. When you are ready, use one of the following commands to generate a sample:
nme create PiratePig
nme create DisplayingABitmap
nme create AddingAnimation
nme create HandlingMouseEvents
nme create HandlingKeyboardEvents
nme create PlayingSound
nme create NyanCat
nme create AddingText
These are some older projects you can also check out:
