Skip to content
Mr zhan edited this page Jul 4, 2020 · 20 revisions

This guide will walk you through installing and setting up Flambe.

There's also a video tutorial by Jeremy McCurdy which goes into great detail about setting up Flambe from scratch and developing a simple project.

Requirements

  • Haxe only work haxe 3.1.1 with flambe 4.1, not support haxe 4.x

  • NodeJS 0.8 or higher, Flambe's build tool is written in Node. On Windows, you may need to reboot after this step.

  • Java runtime.

Downloading

Download and setup Flambe by running:

npm install -g flambe
flambe update

On Mac and Linux, you'll need to run both these commands as root using sudo. Also remember to pass the -g flag to npm install.

Onwards!

At this point, you can create a new project by running flambe new <directory>. To build it, run flambe build html flash --debug. Then flambe serve to start a webserver, and open http://localhost:7000 in your web browser. The Flash or HTML5 build will run depending on what your browser best supports.

After making a change, you can use flambe run html --debug (or flash) to rebuild and refresh your web browser in a single step.

To test Android, flambe run android --debug. You'll need the AIR SDK installed, which comes with FlashDevelop.

The Project.hxproj generated by flambe new can be opened in FlashDevelop. To easily change the platform FlashDevelop builds, open flambe.yaml and edit the default_platform. Note that to debug from within FlashDevelop, your browser needs the Flash debug player.

When you're ready to distribute your game, do a release build by omitting the --debug param. Release builds are smaller and faster, but are slower to build and harder to debug.

Compiling and hacking the demos is a great way to learn by example. There will later be a tutorial for a gentle introduction to Flambe.

For help on how to perform some common tasks, check out the Cookbook and Mark Knol's Guide.

Clone this wiki locally