let burl = "body/" + 1000;
        cc.loader.loadRes(burl+".json", cc.JsonAsset, (error: Error, res: cc.JsonAsset) => {
            var bodyData = res.json;
            cc.log('json:', bodyData);
            cc.loader.loadRes(burl + ".png", cc.Texture2D, (error: Error, tex: cc.Texture2D) => {
                cc.log('tex', tex);
            });
        });

php的框架Hyperf 是基于 Swoole 4.4+ 实现的高性能、高灵活性的 PHP 协程框架。
开发的话,可以用sublime的sftp,写完自动上传到开发服务器上。这样调试方便,不然win下怎么搞都流程麻烦。

- 阅读剩余部分 -

国内一般都用centos7.6,国外用Ubuntu,因为下载速度,习惯的原因,默认这样。

2025更新年最新方法:
CentOS + Nginx 自动续期SLL
https://xigk.com/blog/index.php/archives/1557/

2020年写的:
Let’s Encrypt:https://letsencrypt.org/
Let’s Encrypt is a free, automated, and open Certificate Authority.
key:wss,https,ssl

第一种方法

用 acme.sh申请来自动续期ssl证书
acme说明:https://github.com/Neilpang/acme.sh/wiki/说明
https://www.cnblogs.com/esofar/p/9291685.html

- 阅读剩余部分 -

H5发布,html判断是手机还是pc浏览器

<script type="text/javascript">
    try {
        if (/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
            window.location.href = "./1";
        } else {
            window.location.href = "./2";
        }
    } catch (e) {}
</script>

跟着游戏来,登录,出生点跑地图,打怪,升装备。能做出这些就差不多了,多了也做不出来。
做完上面3,4个系统就差不多能多人玩了。