Skip to content
Mark Knol edited this page Mar 26, 2014 · 78 revisions

Useful guide for Flambe.

Flambe is a Haxe powered 2D game engine that makes cross-platform development actually fun. Spend less time dealing with platform-specific bugs, and more time building great games.

STEP 1 Program installation

   Haxe 3    NodeJS 0.8 or higher
Restart computer after installation, continue to step 2.

STEP 2 Flambe installation and setup

Download and setup Flambe by running:
npm install -g flambe
flambe update

On windows use powershell to run the commandlines. 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.

Thats it! You can use Flambe now!

STEP 3 Create a project

#### Create a new project You can create a new project by running `flambe new `. #### Build the project To build it, run `flambe build html flash --debug`. #### Start the project Run `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. The webserver also provides Live asset reloading.

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

Run Android / iOS

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

Using FlashDevelop

   Download: FlashDevelop
The _Project.hxproj_ generated by `flambe new` can be opened in FlashDevelop. The commandline instructions are integrated in the project file. To easily change the platform FlashDevelop builds, open _flambe.yaml_ and edit the `default_platform`. Note that to debug Flash from within FlashDevelop, your browser needs the Flash [debug player]. For HTML, Javascript [Source Maps] will be generated. > * Details for Yaml file > * More useful things for FlashDevelop here

Ready to release?

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.

Demo projects

Compiling and hacking the demos is a great way to learn by example.

For help on how to perform some common tasks, see other pages in this wiki.


Official Flambe resources

Project & source code: https://github.com/aduros/flambe
More Flambe: Flambe forum | Flambe demo projects | Changelog

Clone this wiki locally