Pomelo​ 的 Cocos2d-js 客户端 pomelo-cocos2d-js

码农软件 · 软件分类 · 手机游戏 · 2019-05-14 18:41:32

软件介绍

pomelo-cocos2d-js 是 PomeloCocos2d-js 客户端。

var pomelo = window.pomelo;
var route = 'gate.gateHandler.queryEntry';
var uid = "uid";
var rid = "rid";
var username = "username";
pomelo.init({
    host: "127.0.0.1",
    port: 3014,
    log: true
}, function() {
    pomelo.request(route, {
        uid: uid
    }, function(data) {
        pomelo.disconnect();
        pomelo.init({
            host: data.host,
            port: data.port,
            log: true
        }, function() {
            var route = "connector.entryHandler.enter";
            pomelo.request(route, {
                username: username,
                rid: rid
            }, function(data) {
                cc.log(JSON.stringify(data));
                chatSend();
            });
        });
    });
});
function chatSend() {
    var route = "chat.chatHandler.send";
    var target = "*";
    var msg = "msg"
    pomelo.request(route, {
        rid: rid,
        content: msg,
        from: username,
        target: target
    }, function(data) {
        cc.log(JSON.stringify(data));
    });
}

本文地址:https://codercto.com/soft/d/5743.html

Database Design and Implementation

Database Design and Implementation

Edward Sciore / Wiley / 2008-10-24 / 1261.00 元

* Covering the traditional database system concepts from a systems perspective, this book addresses the functionality that database systems provide as well as what algorithms and design decisions will......一起来看看 《Database Design and Implementation》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试