Git Product home page Git Product logo

haxor-engine's Introduction

Setup

  • 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 in Flashdevelop or command line haxe compiler.

Usage

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");
 	}
}

Build/Run

HTML

  • 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.

Android

TBD

Windows

TBD

iOS

TBD

Flags/Caveats

Windows

  • -subsystem: console enables cmdline.
  • -D HXCPP_FLOAT32 uses float instead of double

Dependencies

Windows / C++

  • hxcpp
  • ndll/Windows/ folder in hxssl
  • glew32.lib
  • glew32.dll
  • bin folder in hxcpp

haxor-engine's People

Contributors

eduardo-costa avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.