kbengine + cocos2d_js实现html5网络游戏mmorpg(全套代码+资源)

前端之家收集整理的这篇文章主要介绍了kbengine + cocos2d_js实现html5网络游戏mmorpg(全套代码+资源)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

http://www.kbengine.org

中文

Demo搭建文档,QQ交流群:16535321,论坛

Releases

  1. sources:https://github.com/kbengine/kbengine_cocos2d_js_demo/releases/latest
  2. binarys:https://sourceforge.net/projects/kbengine/files/

Start:

  1. 1.DownloadKBEngine(aMMOGengineofserver):
  2. Download(KBEngine):
  3. https://github.com/kbengine/kbengine/releases/latest
  4.  
  5. Build(KBEngine):
  6. http://www.kbengine.org/docs/build.html
  7.  
  8. Installation(KBEngine):
  9. http://www.kbengine.org/docs/installation.html
  10.  
  11. 2.Usegittogettheplugin(client)anddemo-assets(server):
  12.  
  13. Inthekbengine_cocos2d_js_demodirectory:
  14.  
  15. *Gitcommand:gitsubmoduleupdate--init--remote

  1. *OruseTortoiseGit(menu):TortoiseGit->SubmoduleUpdate:

  1. *Ormanuallygettheplugin(client)anddemo-assets(server)
  2.  
  3. Downloadplugin(client):
  4. https://github.com/kbengine/kbengine_js_plugins/releases/latest
  5. unzipandcopyto"kbengine_cocos2d_js_demo/cocos2d-js-client/plugins/"
  6. (Note:theneedtomodifythefoldernameas"kbengine_js_plugins")
  7.  
  8. Downloaddemo-assets(server):
  9. https://github.com/kbengine/kbengine_demos_assets/releases/latest
  10. unzipandcopyto"kbengine/"(Therootdirectoryserverengine,suchas$KBE_ROOT)
  11.  
  12. 3.Copy"kbengine_cocos2d_js_demo\kbengine_demos_assets"to"kbengine\"rootdirectory

Configure Demo(Optional):

  1. Changetheloginaddress:
  2.  
  3. kbengine_cocos2d_js_demo\cocos2d-js-client\main.js
  4. args.ip="127.0.0.1";
  5. args.port=20013;

Start the Servers:

  1. Ensurethatthe"kbengine_cocos2d_js_demo\kbengine_demos_assets"hasbeencopiedtothe"kbengine\"directory
  2. Reference:Start
  3.  
  4. Checkthestartupstatus:
  5. Ifsuccessfulwillfindlog"Components::process():Foundallthecomponents!".
  6. Otherwise,pleasesearchthe"ERROR"keywordinlogs,accordingtotheerrordescriptiontotrytosolve.
  7. (More:http://www.kbengine.org/docs/startup_shutdown.html)
  8.  
  9. Startserver:
  10. Windows:
  11. kbengine\kbengine_demos_assets\start_server.bat
  12.  
  13. Linux:
  14. kbengine\kbengine_demos_assets\start_server.sh
  15.  
  16. (More:http://www.kbengine.org/docs/startup_shutdown.html)

Start the Client:

  1. 1.Wesimplyusepythontobuildwebservice
  2. DownloadandInstallhttp://www.python.org/ftp/python/3.3.4/python-3.3.4.msi
  3.  
  4. 2.Excutethestart_http_service.bat
  5.  
  6. 3.Enterthegame
  7. http://127.0.0.1

Screenshots:

https://github.com/kbengine/kbengine_cocos2d_js_demo

猜你在找的Cocos2d-x相关文章