Go Programming Language 3
    
            
摘要:【Go Programming Language 3】 1、These two statements declare a struct type called and a variable called that Employee dilbert is an instance of an Emplo
        
阅读全文
摘要:【Go Programming Language 2】 1、In Go, the sign of the remainder is always the same as the sign of the dividend, so -5%3 and -5%-3 are both -2. The beha
        
阅读全文
摘要:【Go Programming Language】 1、go run %filename 可以直接编译并运行一个文件,期间不会产生临时文件。例如 main.go。 2、Package Go code is organized into packages, which are similar to l
        
阅读全文
摘要:【Lua语法要点2】 1、Lua函数 function 可以添加 local 关键字。添加后为局部函数,不添加(默认)为全局函数。return 可以返回多个返回值,以, 分隔。 使用 ... 来表示变长参数。 通过 select("#",...) 来获取可变参数的数量: select(n, …) 用
        
阅读全文
摘要:【Lua语法要点】 1、注释。 1)单行注释。 2)多行注释。 2、标识符。 Lua 标示符以一个字母 A 到 Z 或 a 到 z 或下划线 _ 开头后加上0个或多个字母,下划线,数字(0到9)。 最好不要使用下划线加大写字母的标示符,因为Lua的保留字也是这样的。 Lua 不允许使用特殊字符如 @
        
阅读全文
摘要:【网络多人游戏架构与编程2】 1.0、虚拟现实游戏是对延迟最敏感的, 因为我们人类只要头旋转了,眼睛就期望看到不同的事物。在这些情况下,保证用户感觉在虚拟现实世界中就要求延迟少于 20 毫秒。 格斗游戏、 第一人称射击游戏和其他动作频繁的游戏是对延迟第二敏感的。 这些游戏的延迟范围可以从16 毫秒到
        
阅读全文