• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

haxorplatform/haxor-engine: Haxe free cross platform 3D Game Engine

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

haxorplatform/haxor-engine

开源软件地址:

https://github.com/haxorplatform/haxor-engine

开源编程语言:

Haxe 100.0%

开源软件介绍:

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



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap