良辰 发布的文章
服务器选择
国内一般都用centos7.6,国外用Ubuntu,因为下载速度,习惯的原因,默认这样。
脚本自动续期ssl证书 Let’s Encrypt
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
js简单异或
js简单异或
H5发布,html判断是手机还是pc浏览器
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>
游戏服务器端框架java server
一个由Java实现的游戏服务器端框架,可快速开发出易维护、高性能、高扩展能力的游戏服务器
https://gitee.com/xiaoe/noark3
creator使用protobuf
creator使用protobuf
https://mp.weixin.qq.com/s/OIkcsJQfLSXnZoUfXZ61AQ
npm i protobufjs -g
pbts,用来将转化后的js文件转为ts
creator用--nologin跳过登录
creator用--nologin
跳过登录
creator画直线
var ctx = this._Nodes.drawn.getComponent(cc.Graphics);
ctx.moveTo(0,0);
ctx.lineTo(0,20);
ctx.lineTo(70,70);
ctx.stroke();
//ctx.clear();
多人同屏游戏怎么开始做
跟着游戏来,登录,出生点跑地图,打怪,升装备。能做出这些就差不多了,多了也做不出来。
做完上面3,4个系统就差不多能多人玩了。
creator使用protobuf
creator使用protobuf
https://forum.cocos.org/t/protobufjs-cocos-creator1-6/50706/5
A*寻路算法之解决路径多拐点问题
游戏初始4大系统
1)战斗 2)怪物关卡地图 3)角色,技能 4)装备强化,道具宝石
上线steam流程
两本人类的书
两本人类的书
《全球通史:从史前史到21世纪(美)斯塔夫里阿诺斯》https://pan.baidu.com/s/1dDhPnP3
《枪炮、病菌与钢铁》http://www.downcc.com/soft/305028.html
centos安装java
centos安装javayum -y install java-1.8.0-openjdk
程序员书籍book
程序员书籍book
h5平台思路
h5平台 h5game
www.y8.com
http://zh.y8.com/games/color_spin
creator3d例子
赶紧把产品做出来。
一堆人找产品,我得赶紧把产品做出来,很多人找的。