这期内容当中小编将会给大家带来有关kbengine+cocos2djs的mmorpg游戏demo是怎么样的,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。
sources : https://github.com/kbengine/kbengine_cocos2d_js_demo/releases/latest binarys : https://sourceforge.net/projects/kbengine/files/
https://github.com/kbengine/kbengine_js_plugins/blob/master/README.md
1. Download KBEngine(a MMOG engine of server):
Download(KBEngine):
https://github.com/kbengine/kbengine/releases/latest
Build(KBEngine):
http://www.kbengine.org/docs/build.html
Installation(KBEngine):
http://www.kbengine.org/docs/installation.html
2. Use git to get the plugin(client) and demo-assets(server):
In the kbengine_cocos2d_js_demo directory:
* Git command: git submodule update --init --remote
* Or use TortoiseGit(menu): TortoiseGit -> Submodule Update:
* Or manually get the plugin(client) and demo-assets(server)
Download plugin(client):
https://github.com/kbengine/kbengine_js_plugins/releases/latest
unzip and copy to "kbengine_cocos2d_js_demo/cocos2d-js-client/plugins/"
(Note: the need to modify the folder name as "kbengine_js_plugins")
Download demo-assets(server):
https://github.com/kbengine/kbengine_demos_assets/releases/latest
unzip and copy to "kbengine/" (The root directory server engine, such as $KBE_ROOT)
3. Copy "kbengine_cocos2d_js_demo\kbengine_demos_assets" to "kbengine\" root directory
Change the login address(Clear browser cache):
kbengine_cocos2d_js_demo\cocos2d-js-client\main.js
args.ip = "127.0.0.1";
args.port = 20013;
Ensure that the "kbengine_cocos2d_js_demo\kbengine_demos_assets" has been copied to the "kbengine\" directory
Reference:Start
Check the startup status:
If successful will find log "Components::process(): Found all the components!".
Otherwise, please search the "ERROR" keyword in logs, according to the error description to try to solve.
(More: http://www.kbengine.org/docs/startup_shutdown.html)
Start server:
Windows:
kbengine\kbengine_demos_assets\start_server.bat
Linux:
kbengine\kbengine_demos_assets\start_server.sh
(More: http://www.kbengine.org/docs/startup_shutdown.html)
1. We simply use python to build web service
Download and Install http://www.python.org/ftp/python/3.3.4/python-3.3.4.msi
2. Excute the start_http_service.bat
3. Enter the game
http://127.0.0.1
上述就是小编为大家分享的kbengine+cocos2djs的mmorpg游戏demo是怎么样的了,如果刚好有类似的疑惑,不妨参照上述分析进行理解。如果想知道更多相关知识,欢迎关注亿速云行业资讯频道。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。
原文链接:http://blog.itpub.net/31425366/viewspace-2131813/