Friday, August 3, 2012
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
Alchemy v0.5a Installation Notes
Got a new notebook, so I will post some notes for future reference. Here is the one for Adobe Alchemy,
Environment: Windows 7.
Official Instructions:
http://labs.adobe.com/wiki/index.php/Alchemy:Documentation:Getting_Started#Windows
1. Go to http://cygwin.com/install.html, download the "setup.exe" and install cygwin (to C:\cygwin) with the following packages:
zip (archive), gcc-g++, make (devel), perl.
2. Downloaded alchemy package at http://labs.adobe.com/downloads/alchemy.html,
(Backup: https://docs.google.com/folder/d/0B5V2PrQ8xX_EN2NCWHkySGlMclE/edit)
unzip it to D:\alchemy-cygwin-v0.5a.
3. Open Cygwin Terminal, input the following commands:
cd D:\alchemy-cygwin-v0.5a
./config
4. Test alchemy with the commands to build the sample files:
source /cygdrive/d/alchemy-cygwin-v0.5a/alchemy-setup
alc-on
cd D:/alchemy-cygwin-v0.5a/samples/HelloFlash
gcc HelloFlash.c -O3 -Wall -swf -o HelloFlash.swf
and
cd D:/alchemy-cygwin-v0.5a/samples/stringecho
gcc stringecho.c -O3 -Wall -swc -o stringecho.swc
It works and successfully generated the swf and swc files!