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:

 

  1. Open up a terminal
  2. Navigate to whatever folder you want to put your project in
  3. 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
  4. You should see output like this:
  5. That's it! you should now have a folder called "MyProject". This is your new project folder.
  6. To give it a try, run the following in the terminal:

    cd MyProject
    nme test MyProject.nmml flash
  7. Assuming you have flash player installed, you should see the example project running:
    1. 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.