HaxeNME with smartfox server integration

泪湿孤枕 提交于 2019-12-25 05:13:06

问题


I'm working on a multiplayer game that required the use of Smartfox server, surely I want to start creating the client side in HaxeNME to enable exportation to iphone / android / web at the same time. From my awareness, smartfox only support Flash (and others but not Haxe) client library. So, anyone already working on this can point me to the correct library or direction ? I really don't want to rewrite the client library for Haxe as it's time consuming ?

Or should I use other technology to develop this game ? I tended to fall back to Unity if there are no other way to get haxeNME works with smartfox ... Any idea, everyone ?

thanks for your answers !


回答1:


I've ported AS3 smartfox to haxe/cpp. All works quite fine except the BlueBox module because of nme.net.URLRequest that doesn't support POST method yet :/ But in the futur I'll use the SWC on flash target, Java and objectiveC for android and iOS with nme.JNI and nmex support...




回答2:


If your target is CPP/NME, I'm afraid your only option is to port the SmartFox AS3 client code to Haxe.

There are some tools that can be helpful for the task. Look for as3hx.




回答3:


If you mean using SWC files from smartfox, haXe does not currently support SWC linking, however you can use them. You'll first have to unzip the SWC to extract the library.swf and add it with --swf-lib library.swf to your compiler parameters.

More information on http://haxe.org/manual/swc



来源:https://stackoverflow.com/questions/8767423/haxenme-with-smartfox-server-integration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!