- Install Haxe
3.2.0
http://haxe.org/download/version/3.2.0-rc.2/. - Git install using
haxelib
command. haxelib git haxor https://github.com/haxorplatform/haxor-engine.git 1.0
- Link the
haxor
library inFlashdevelop
or command linehaxe
compiler.
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.html
file 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: console
enables cmdline.-D HXCPP_FLOAT32
usesfloat
instead ofdouble
hxcpp
ndll/Windows/
folder in hxsslglew32.lib
glew32.dll
bin
folder in hxcpp