XueChen

记录生活,享受生活

lua笔记

1. 数组长度 local t1 = { "A", "B", "C" } local t2 = { [1] = "A", [2] = "B", [3] = "C" } local t3 = { [10] = "a"} --[[ t1 和 t2的差别: t1 可以理解为 数组 t2 可以理解为 字典 #t1 == 3 #t2 == 3 #t3 == 0 ...

UIText行列间距

本身UIText也是靠CCLabel来渲染的 void Text::initRenderer() { _labelRenderer = Label::create(); addProtectedChild(_labelRenderer, LABEL_RENDERER_Z, -1); } CCLabel 有设置列间距行间距的方法 // 行间距 ...

图形学笔记

参考_games101官网视频在B站: https://sites.cs.ucsb.edu/~lingqi/teaching/games101.html 参考_视频评论区一小哥blog: https://www.zhihu.com/people/sun-lei-22-19/posts 参考_知乎偶然发现的一个手写笔记: https://www.zhihu.com/people/zhao-...

ShaderTest

如何实时渲染shader 参考: https://zhuanlan.zhihu.com/p/32443564 教程地址 https://thebookofshaders.com/02/?lan=ch code: https://github.com/XueChenChen/ShaderTest

设计模式笔记

一个好的开源游戏框架除了能给我们开发者带来开发效率的提升以外,还应该被我们吸收其设计思想,这样它的价值才能完整。 设计模式是一套被反复使用的、多数人知晓、经过分类编目的优秀代码设计经验的总结。 一句话就是: 在一定环境下,用固定套路解决问题。 1. 对问题行抽象、归纳、解耦合。 2. 可重用代码、让代码更容易被他人理解、保证代码可靠性。 3. 使代码编制真正工程化 4. 提高开发效率 正确...

GLTest

教程地址 环境配置: https://zhuanlan.zhihu.com/p/24529016 文档参考 https://learnopengl-cn.readthedocs.io/zh/latest/ https://learnopengl-cn.github.io/ http://www.songho.ca/opengl/ ...

CocoaPods 安装

好久没弄过iOS了最近游戏要接个SDK,要用CocoaPods 之前没记录下这次记录一下 CocoaPods 安装 1. 查看源 gem sources -l //查看ruby源 默认显示: hawk-ipv6:~ mac$ gem sources -l *** CURRENT SOURCES *** https://rubygems.org/ 2. ruby源在墙内是访问不...

复习线性代数

The introduction of numbers as coordinates is an act of violence - Hermann Weyl (参照一维连续统的特定划分模式来) 引入一些数作为坐标是一种鲁莽的行为。 - 赫尔曼 外尔 1. 向量 https://github.com/3b1b/manim 向量计算机空间表示 Mathematics require...

初入Cordova 和 Vue.js碰的部题(Unable to start the daemon process.)

问题:(Unable to start the daemon process.) 列了几点希望可以帮到你们。 input: λ cordova build android output: ANDROID_HOME=C:\Users\Administrator\AppData\Local\Android\sdk JAVA_HOME=C:\Program F...

swift中的Alamofire的一个bug而了解url中特殊字符!

bug 原网页 //target: Alamofire.swift line 97 // MARK: - Convenience func URLRequest( method: Method, _ URLString: URLStringConvertible, headers: [String: String]? = nil) -> NSMuta...