Thursday, August 2, 2012

Haxenme Installation Notes

1. Download the standalone installation package NME-3.4.0-Windows.exe at
http://www.haxenme.org/download/
(Haxe [2.10], Neko [1.8.2], NME [3.4.0], HXCPP [2.10], Actuate [1.43], SWF [1.13])

2. Click and run to install.
(2013/3/15:
Tips: For updating NME from an older version, the simplest way is to download the new setup package, and reinstall. Uncheck the things that are already newest here, e.g., Haxe, Neko. Then select the same folder of the old installation.
http://www.nme.io/community/forums/feature-requests/eficient-way-to-upgrade-nme/)





3. Setup HaXe:
Go to D:\Motion-Twin\haxe, run haxesetup.exe


Done! Now let's test it.

4. Go to cmd:
haxe

nme


5. Now download the sample file at
http://www.joshuagranick.com/blog/2012/02/22/nme-game-example-pirate-pig/
to test.
Unzip the source code "jgranick-PiratePig-9deb597.zip" to D:\TEST_PROJECTS\jgranick-PiratePig-9deb597.
cmd commands to build the swf:
cd D:\TEST_PROJECTS\jgranick-PiratePig-9deb597
nme test "Pirate Pig.nmml" flash


and to build html:nme test project.nmml html5


6. Use Flashdevelop for nme projects. (You should install Flashdevelop at http://www.flashdevelop.org/ first)
Open Flashdevelop and configure haxe path:

Open "Pirate Pig.hxproj" and build the project:


7. To use haxecpp target windows, you need to install VC++ (nme setup windows) at
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express first.
After that
cd D:\TEST_PROJECTS\jgranick-PiratePig-9deb597
nme test "Pirate Pig.nmml" cpp

1 comment:

  1. When I initially commented I seem to have clicked the -Notify me when new comments are added-
    checkbox and from now on each time a comment is added I get 4
    emails with the same comment. Is there an easy method you
    are able to remove me from that service? Many thanks!
    Visit my web page - Here i Found it

    ReplyDelete

Sponsors