随笔分类 - 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(...
阅读全文
摘要://冒泡排序 sort(elements){ for (let i = 0; i val){ right.push(elements[i]); }else if(elements[i] = x) // 从右向左找第一个小于x的数 j--; ...
阅读全文
摘要:Socket.io的默认事件列表 服务端事件 客户端事件
阅读全文
摘要:https://github.com/SeaPlanet/cocoscreator_chat 前端源码 https://github.com/socketio/socket.io-client https://cdnjs.com/libraries/socket.io
阅读全文
摘要:1. 服务端 io.on('connection',function(socket)); 监听客户端连接,回调函数会传递本次连接的socket io.sockets.emit('String',data); 给所有客户端广播消息 io.sockets.socket(socketid).emit('S
阅读全文
摘要:https://www.jianshu.com/p/29883621184c
阅读全文
摘要:https://www.jianshu.com/p/fe54ca980384
阅读全文
摘要:首先是官方文档 http://docs.cocos.com/creator/manual/zh/advanced-topics/hot-update.html http://docs.cocos.com/creator/manual/zh/advanced-topics/assets-manager
阅读全文
摘要:Cocos Creator 官方文档 https://www.cocos.com/docs 安装配置原生开发环境 https://docs.cocos.com/creator/manual/zh/publish/setup-native-development.html JAVA https://w
阅读全文

浙公网安备 33010602011771号