Moba 多人游戏 demo,已开源

mark一下

这个厉害了!还有帧同步

mark 一下

楼主,刚才看了一下代码,是那个code文件夹么。里面没找到帧同步的地方。例如服务器每帧同步命令,客户端接收帧进行同步、校验、回滚之类的操作。是我找错地方了么?

1赞

楼主怎么不更新了

还差点

没跑起来,怎么搞

success: wechatgame loaded
2019-12-01T02:25:36.787Z - success: xiaomi-runtime loaded
2019-12-01T02:25:57.714Z - info: Cocos Services load base data!
2019-12-01T02:26:26.287Z - normal: Loading packages
2019-12-01T02:26:26.439Z - normal: Watching packages
2019-12-01T02:26:36.427Z - normal: Run Application
2019-12-01T02:27:36.276Z - error: cc.TMXMapInfo.parseXMLFile(): Texture ‘terrain/terrain_xuedi02.png’ not found.
at Object.cc.errorID (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\CCDebug.js:165:16)
at cc.TMXMapInfo.parseXMLString (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTMXXMLParser.js:440:32)
at cc.TMXMapInfo.initWithXML (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTMXXMLParser.js:344:29)
at new cc.TMXMapInfo (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTMXXMLParser.js:202:18)
at cc_TiledMap._applyFile (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTiledMap.js:204:35)
at cc_TiledMap.__preload (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTiledMap.js:172:26)
at eval (eval at createInvokeImpl (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\component-scheduler.js:160:65), :3:65)
at CCClass._invoke (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\component-scheduler.js:165:21)
at CCClass.invoke (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\node-activator.js:50:22)
2019-12-01T02:27:36.281Z - error: cc.TMXMapInfo.parseXMLFile(): Texture ‘terrain/longgu.png’ not found.
at Object.cc.errorID (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\CCDebug.js:165:16)
at cc.TMXMapInfo.parseXMLString (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTMXXMLParser.js:440:32)
at cc.TMXMapInfo.initWithXML (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTMXXMLParser.js:344:29)
at new cc.TMXMapInfo (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTMXXMLParser.js:202:18)
at cc_TiledMap._applyFile (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTiledMap.js:204:35)
at cc_TiledMap.__preload (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTiledMap.js:172:26)
at eval (eval at createInvokeImpl (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\component-scheduler.js:160:65), :3:65)
at CCClass._invoke (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\component-scheduler.js:165:21)
at CCClass.invoke (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\node-activator.js:50:22)
2019-12-01T02:27:36.283Z - error: cc.TMXMapInfo.parseXMLFile(): Texture ‘terrain/xuedi_tree03.png’ not found.
at Object.cc.errorID (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\CCDebug.js:165:16)
at cc.TMXMapInfo.parseXMLString (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTMXXMLParser.js:440:32)
at cc.TMXMapInfo.initWithXML (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTMXXMLParser.js:344:29)
at new cc.TMXMapInfo (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTMXXMLParser.js:202:18)
at cc_TiledMap._applyFile (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTiledMap.js:204:35)
at cc_TiledMap.__preload (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTiledMap.js:172:26)
at eval (eval at createInvokeImpl (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\component-scheduler.js:160:65), :3:65)
at CCClass._invoke (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\component-scheduler.js:165:21)
at CCClass.invoke (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\node-activator.js:50:22)
2019-12-01T02:27:36.287Z - error: cc.TMXMapInfo.parseXMLFile(): Texture ‘terrain/xuedi_tree04.png’ not found.
at Object.cc.errorID (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\CCDebug.js:165:16)
at cc.TMXMapInfo.parseXMLString (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTMXXMLParser.js:440:32)
at cc.TMXMapInfo.initWithXML (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTMXXMLParser.js:344:29)
at new cc.TMXMapInfo (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTMXXMLParser.js:202:18)
at cc_TiledMap._applyFile (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTiledMap.js:204:35)
at cc_TiledMap.__preload (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTiledMap.js:172:26)
at eval (eval at createInvokeImpl (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\component-scheduler.js:160:65), :3:65)
at CCClass._invoke (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\component-scheduler.js:165:21)
at CCClass.invoke (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\node-activator.js:50:22)
2019-12-01T02:27:36.290Z - error: cc.TMXMapInfo.parseXMLFile(): Texture ‘terrain/xuedi_mountain_06.png’ not found.
at Object.cc.errorID (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\CCDebug.js:165:16)
at cc.TMXMapInfo.parseXMLString (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTMXXMLParser.js:440:32)
at cc.TMXMapInfo.initWithXML (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTMXXMLParser.js:344:29)
at new cc.TMXMapInfo (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTMXXMLParser.js:202:18)
at cc_TiledMap._applyFile (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTiledMap.js:204:35)
at cc_TiledMap.__preload (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTiledMap.js:172:26)
at eval (eval at createInvokeImpl (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\component-scheduler.js:160:65), :3:65)
at CCClass._invoke (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\component-scheduler.js:165:21)
at CCClass.invoke (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\node-activator.js:50:22)
2019-12-01T02:27:36.507Z - error: TypeError: Cannot read property ‘width’ of null
at CCClass._invoke (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\component-scheduler.js:167:24)
at CCClass.invoke (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\node-activator.js:50:22)
at CCClass.activateNode (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\node-activator.js:184:34)
at cc_Scene._activate (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\CCScene.js:70:44)
at cc.Director.runSceneImmediate (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\CCDirector.js:218:23)
at E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\CCDirector.js:328:42
at CCLoader. (E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\platform\CCAssetLibrary.js:66:25)
at E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\load-pipeline\CCLoader.js:141:46
at E:\CocosCreator_2.2.0\resources\engine\bin.cache\dev\cocos2d\core\platform\utils.js:49:25

你运行起来了没

mark一下

mark 一下

mark一下

大佬为何给图不给全了,就那些地形图

mark mark mark