- Install Haxe
3.2.0http://haxe.org/download/version/3.2.0-rc.2/. - Git install using
haxelibcommand. haxelib git haxor https://github.com/haxorplatform/haxor-engine.git 1.0- Link the
haxorlibrary inFlashdevelopor command linehaxecompiler.
While we are still doing some documentation, the most basic program should be like this:
import haxor.core.Application;
import haxor.core.Console;
import haxor.platform.html.Entry;
class MainApp extends Application
{
//Entry Point
static function main():Void
{
Browser.window.onload = function()
{
//<div id="haxor-content"></div>
Entry.Create("MainApp", "haxor-content", "haxor-content", "app-name", 4);
};
}
//Init.
override public function Initialize():Void
{
Console.Log("Hello World");
}
}- Create an
index.htmlfile with the container<div id='haxor-content'>. - Build your app
haxe -lib haxor -js path/to/app.js -D html -D js-es5 -D js-flatten -main pack.to.MainApp
- Run your page and check the console for Haxor's initialization procedures.
TBD
TBD
TBD
-subsystem: consoleenables cmdline.-D HXCPP_FLOAT32usesfloatinstead ofdouble
hxcppndll/Windows/folder in hxsslglew32.libglew32.dllbinfolder in hxcpp
