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

本教程详细介绍了如何利用KBEngine服务器引擎和Cocos2d-JS客户端库来创建HTML5网络游戏。首先,下载并安装KBEngine服务器,接着通过Git获取客户端插件和示例资源。将资源复制到相应目录,然后配置登录地址。启动服务器和客户端,成功运行后会在日志中看到'Components::process():Found all the components!'。
摘要由CSDN通过智能技术生成

中文

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

Releases

sources:https://github.com/kbengine/kbengine_cocos2d_js_demo/releases/latest

binarys:https://sourceforge.net/projects/kbengine/files/

Start:

1.DownloadKBEngine(aMMOGengineofserver):

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.Usegittogettheplugin(client)anddemo-assets(server):

Inthekbengine_cocos2d_js_demodirectory:

*Gitcommand:gitsubmoduleupdate--init--remote

*OruseTortoiseGit(menu):TortoiseGit->SubmoduleUpdate:

*Ormanuallygettheplugin(client)anddemo-assets(server)

Downloadplugin(client):

https://github.com/kbengine/kbengine_js_plugins/releases/latest

unzipandcopyto"kbengine_cocos2d_js_demo/cocos2d-js-client/plugins/"

(Note:theneedtomodifythefoldernameas"kbengine_js_plugins")

Downloaddemo-assets(server):

https://github.com/kbengine/kbengine_demos_assets/releases/latest

unzipandcopyto"kbengine/"(Therootdirectoryserverengine,suchas$KBE_ROOT)

3.Copy"kbengine_cocos2d_js_demo\kbengine_demos_assets"to"kbengine\"rootdirectory

Configure Demo(Optional):

Changetheloginaddress:

kbengine_cocos2d_js_demo\cocos2d-js-client\main.js

args.ip="127.0.0.1";

args.port=20013;

Start the Servers:

Ensurethatthe"kbengine_cocos2d_js_demo\kbengine_demos_assets"hasbeencopiedtothe"kbengine\"directory

Reference:Start

Checkthestartupstatus:

Ifsuccessfulwillfindlog"Components::process():Foundallthecomponents!".

Otherwise,pleasesearchthe"ERROR"keywordinlogs,accordingtotheerrordescriptiontotrytosolve.

(More:http://www.kbengine.org/docs/startup_shutdown.html)

Startserver:

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)

Start the Client:

1.Wesimplyusepythontobuildwebservice

DownloadandInstallhttp://www.python.org/ftp/python/3.3.4/python-3.3.4.msi

2.Excutethestart_http_service.bat

3.Enterthegame

http://127.0.0.1

Screenshots:

https://github.com/kbengine/kbengine_cocos2d_js_demo

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值