Sunday, 15 June 2014

html5 - How to use HaxeFlixel together with openfl-bitfive -



html5 - How to use HaxeFlixel together with openfl-bitfive -

i build haxeflixel project against html5 target, using openfl-bitfive

in readme openfl-bitfive: https://github.com/yellowafterlife/openfl-bitfive#usage, says:

"navigate application.xml of project , add together next before inclusion of openfl library: <set name="html5-backend" value="openfl-bitfive" />"

in haxeflixel, there no application.xml, , closest thing project.xml.

so set in "<set name="html5-backend" value="openfl-bitfive" />" first kid node of "<project>" element.

i run build command, , next error output:

$ lime build html5 /usr/lib/haxe/lib/openfl-bitfive/2,0,1/openfl/assets.hx:487: characters 31-57 : defaultassetlibrary should openfl.assetlibrary /usr/lib/haxe/lib/openfl-bitfive/2,0,1/openfl/assets.hx:487: characters 31-57 : function argument 'library' /usr/lib/haxe/lib/lime/2,0,0-alpha,7/lime/system/system.hx:75: characters 2-35 : class<applicationmain> has no field config /usr/lib/haxe/lib/lime/2,0,0-alpha,7/lime/system/system.hx:76: characters 2-32 : class<applicationmain> has no field config /usr/lib/haxe/lib/lime/2,0,0-alpha,7/lime/system/system.hx:77: characters 2-24 : class<applicationmain> has no field create

as can see, openfl-bitfive library gets invoked, however, goes wrong, , not understand error messages.

what going wrong here?

anyone out there has used openfl-bitfive compile haxeflixel project, please allow me know how!

libraries , versions:

$ haxelib list flixel-addons: [1.1.0] flixel-demos: [1.1.1] flixel-templates: [1.0.2] flixel-tools: [1.0.2] flixel-ui: [1.0.2] flixel: [3.3.5] hxcpp: [3.1.39] lime: [2.0.0-alpha.7] openfl-bitfive: [2.0.1] openfl: [2.1.5]

you don't need set html5 backend actually, it's flixel's default backend already.

however, bitfive not yet compatible recent openfl / lime versions.

there 2 options:

use openfl's default html5 backend via <set name="no-custom-backend" /> downgrade openfl 2.0.1 / lime 1.0.1 / lime-tools 1.5.7

html5 haxe openfl flixel haxeflixel

No comments:

Post a Comment