Creating a new project
If you haven't already, you'll want to install Firmament and all dependencies. Do this in the installation guide.
Thank you for trying out Firmament! This is a quick tutorial on how to create your first project. Firmament has a built-in command-line tool that makes creating new projects really easy.
Here's how:
- Open up a terminal
- Navigate to whatever folder you want to put your project in
Run the following command in the terminal. Note that you can change the project name - 'MyProject' and the package name - 'com.example.myproject' to whatever you want. (Package names do need to have 3 segments, seperated my a dot though)
haxelib run firmament setup MyProject com.example.myproject
- You should see output like this:
- That's it! you should now have a folder called "MyProject". This is your new project folder.
To give it a try, run the following in the terminal:
cd MyProject nme test MyProject.nmml flash
- Assuming you have flash player installed, you should see the example project running:
If nothing happens, or your get a message about flash player not found, I recommend downloading the flash "Projector content debugger" for your platform from http://www.adobe.com/support/flashplayer/downloads.html. Download it, run it once, then try the command above.