摘要: PlayerPrefs没有提供存储bytes[]和其他自定义结构的接口,我们可以利用现有的SetString接口,将bytes[]转化为string存储,从而实现扩展 1.bytes[]和string之间的互相转换 `System.Convert.ToBase64String(bytes)` `Sy 阅读全文
posted @ 2020-07-29 10:58 jeoyao 阅读(523) 评论(0) 推荐(0)
摘要: 这篇文章是聊关于BSP技术的历史的文章,很有趣,内容很详实。 翻译补充内容: Homer Simpson,动画片辛普森一家的老爸,智商不在线 DOOM,毁灭战士,这里不翻译了 id Software,公司名,不翻译了 原文链接 https://twobithistory.org/2019/11/06 阅读全文
posted @ 2020-07-04 10:28 jeoyao 阅读(631) 评论(0) 推荐(0)
摘要: 原文参考 http://www-cs.ccny.cuny.edu/~wolberg/capstone/intersection/Intersection%20point%20of%20two%20lines.html 有两条直线,p1(x1,y1)和p2(x2,y2)构成直线A,p3(x3,y3)和 阅读全文
posted @ 2020-07-04 09:45 jeoyao 阅读(426) 评论(0) 推荐(0)
摘要: 资料参考 https://www.scratchapixel.com/lessons/3d-basic-rendering/rasterization-practical-implementation/rasterization-stage 题外话 scratchapixel的文章都很不错,缺点是稍 阅读全文
posted @ 2020-07-02 18:25 jeoyao 阅读(549) 评论(0) 推荐(1)
摘要: stackexchange参考文章 https://math.stackexchange.com/questions/311921/get-location-of-vector-circle-intersection 下面来复习一下 假设圆的中心为(h,k),半径为r,那么圆的方程式如下: \((x 阅读全文
posted @ 2020-07-02 16:12 jeoyao 阅读(472) 评论(0) 推荐(0)
摘要: 原文参考: https://yal.cc/rectangle-circle-intersection-test/ 本文是关于圆-矩形如何进行碰撞检测。由于某些原因,这似乎一直被认为是一个复杂的事情,但其实不是。 先说重要的,你很有可能已经掌握了如何检测圆和点之间的碰撞检测-只需要检测点和圆之间的距离 阅读全文
posted @ 2020-07-02 12:07 jeoyao 阅读(392) 评论(0) 推荐(0)
摘要: 原文链接 https://gamedevelopment.tutsplus.com/tutorials/understanding-goal-based-vector-field-pathfinding--gamedev-9007 专业术语 tile 我认为最好的翻译是区块,一般都翻译成瓦片,实际上 阅读全文
posted @ 2020-06-29 12:06 jeoyao 阅读(787) 评论(0) 推荐(1)
摘要: 配置端口号开放 # firewall-cmd --zone=public --add-port=端口号/tcp --permanent success 查看已经开放的端口: firewall-cmd --list-ports 重新载入配置 firewall-cmd --reload 停止防火墙 sy 阅读全文
posted @ 2020-05-29 16:12 jeoyao 阅读(131) 评论(0) 推荐(0)
摘要: 安装 yum -y install vsftpd 配置 用vim打开vsftpd.conf,命令如下,在vim中按i,进入输入模式 vim /etc/vsftpd/vsftpd.conf 1.禁止匿名登录 anonymous_enable=NO 2.允许本机用户登录 local_enable=YES 阅读全文
posted @ 2020-05-29 16:10 jeoyao 阅读(140) 评论(0) 推荐(0)
摘要: 定制协议 TCP是基于二进制数据流的,因此发送数据时,需要告诉接受方,消息之间应该如何分割。 一个消息是我们定义好的协议的实例,比如登录消息,消息内含有用户名和密码字段。假设现在有2个10K长度的消息,TCP会根据网络情况,分多次接受到数据,可能是5K+6K+9K收完,也可能是一次收到20K,也可能 阅读全文
posted @ 2020-05-29 16:08 jeoyao 阅读(382) 评论(0) 推荐(0)