随笔分类 -  Cocos Creator

摘要:getVectorRadians( x1, y1, x2, y2) { let len_y = y2 - y1; let len_x = x2 - x1; let tan_yx = Math.abs(len_y)/Math.abs(len_x); let angle = 0; if(... 阅读全文
posted @ 2019-08-29 16:29 suneil 阅读(4918) 评论(0) 推荐(1)
摘要://冒泡排序 sort(elements){ for (let i = 0; i val){ right.push(elements[i]); }else if(elements[i] = x) // 从右向左找第一个小于x的数 j--; ... 阅读全文
posted @ 2019-08-02 21:23 suneil 阅读(202) 评论(0) 推荐(0)
摘要:Socket.io的默认事件列表 服务端事件 客户端事件 阅读全文
posted @ 2019-08-02 15:20 suneil 阅读(1990) 评论(0) 推荐(1)
摘要:https://github.com/SeaPlanet/cocoscreator_chat 前端源码 https://github.com/socketio/socket.io-client https://cdnjs.com/libraries/socket.io 阅读全文
posted @ 2019-08-02 15:02 suneil 阅读(616) 评论(1) 推荐(0)
摘要:1. 服务端 io.on('connection',function(socket)); 监听客户端连接,回调函数会传递本次连接的socket io.sockets.emit('String',data); 给所有客户端广播消息 io.sockets.socket(socketid).emit('S 阅读全文
posted @ 2019-08-02 12:40 suneil 阅读(1865) 评论(0) 推荐(0)
摘要:https://www.jianshu.com/p/29883621184c 阅读全文
posted @ 2019-07-30 08:32 suneil 阅读(300) 评论(0) 推荐(0)
摘要:https://www.jianshu.com/p/fe54ca980384 阅读全文
posted @ 2019-07-30 08:31 suneil 阅读(616) 评论(0) 推荐(0)
摘要:首先是官方文档 http://docs.cocos.com/creator/manual/zh/advanced-topics/hot-update.html http://docs.cocos.com/creator/manual/zh/advanced-topics/assets-manager 阅读全文
posted @ 2019-07-30 08:22 suneil 阅读(1063) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2019-07-30 00:17 suneil 阅读(4) 评论(0) 推荐(0)
摘要:Cocos Creator 官方文档 https://www.cocos.com/docs 安装配置原生开发环境 https://docs.cocos.com/creator/manual/zh/publish/setup-native-development.html JAVA https://w 阅读全文
posted @ 2019-07-30 00:14 suneil 阅读(614) 评论(0) 推荐(0)