Lua
文章平均质量分 78
chalmers_15
从c++到lua,再到nodejs;从游戏客户端到服务端,到游戏后台管理/web游戏后端/运维。
展开
-
lua程序设计第二版 读书笔记(22-23章)
书本下载地址 http://download.csdn.net/detail/myy2012/5349646本部分下载地址 http://download.csdn.net/detail/myy2012/5380439 lua程序设计第二版 读书笔记(1-4章) 第一章 开始第二章 类型与值原创 2013-05-15 14:04:29 · 1606 阅读 · 0 评论 -
lua程序设计第二版 读书笔记(24-26章)
书本下载地址 http://download.csdn.net/detail/myy2012/5349646本部分下载地址 http://download.csdn.net/detail/myy2012/5390585 lua程序设计第二版 读书笔记(1-4章) 第一章 开始第二章 类型与值原创 2013-05-16 16:52:29 · 2890 阅读 · 0 评论 -
lua文件操作(1)----基本读写
最近有空空闲 整理点东西吧 --功能:读取文件--输入:文件名--输出:屏幕上一行一行显示文件里的内容function readfile(filename) local rfile=io.open(filename, "r") --读取文件(r读取) assert(rfile) --打开时验证是否出错 for str in rfile:lines() do --一行原创 2013-04-01 14:38:29 · 9543 阅读 · 1 评论 -
lua文件操作(3)----txt文件转换成lua文件的table格式
最近有空空闲 整理点东西吧 相信这个在游戏脚本里有那么一点点用处1.先来个简单的---------------------------------------------------功能:字符串按格式的分解--输入:字符串,格式符号--输出:分割好的字符串tablefunction trimstr(str, c) local t={} if nil~=str then原创 2013-04-01 16:43:09 · 7954 阅读 · 0 评论 -
lua文件操作(2)----文件转换
最近有空空闲 整理点东西吧 1.单个文件的转换function filetofile(infile, outfile) local readfile = io.open(infile,"r") --读取文件 assert(readfile) --打开时验证是否出错 local writefile = io.open(outfile,"w") --写入文件(w覆盖原创 2013-04-01 15:39:44 · 3441 阅读 · 1 评论 -
lua程序设计第二版 读书笔记(18-21章)
书本下载地址 http://download.csdn.net/detail/myy2012/5349646本部分下载地址 http://download.csdn.net/detail/myy2012/5374753 lua程序设计第二版 读书笔记(1-4章) 第一章 开始第二章 类型与值原创 2013-05-14 15:41:05 · 2110 阅读 · 0 评论 -
lua程序设计第二版 读书笔记(15-17章)
第十五章 模块与包 书本下载地址 http://download.csdn.net/detail/myy2012/5349646本部分下载地址 http://download.csdn.net/detail/myy2012/5396343 lua程序设计第二版 读书笔记(1-4章) 第一原创 2013-05-13 17:22:51 · 1343 阅读 · 0 评论 -
lua程序设计第二版 读书笔记(11-14章)
书本下载地址 http://download.csdn.net/detail/myy2012/5349646本部分下载地址 http://download.csdn.net/detail/myy2012/5355935 lua程序设计第二版 读书笔记(1-4章) 第一章 开始第二章 类型与值原创 2013-05-11 15:14:38 · 1484 阅读 · 0 评论 -
lua程序设计第二版 读书笔记(9-10章)
书本下载地址 http://download.csdn.net/detail/myy2012/5349646本部分下载地址 http://download.csdn.net/detail/myy2012/5353143 lua程序设计第二版 读书笔记(1-4章) 第一章 开原创 2013-05-10 15:44:10 · 1398 阅读 · 0 评论 -
lua程序设计第二版 读书笔记(5-8章)
书本下载地址 http://download.csdn.net/detail/myy2012/5349646本部分下载地址 http://download.csdn.net/detail/myy2012/5349605 lua程序设计第二版 读书笔记(1-4章) 第一章 开始第二章原创 2013-05-09 17:04:39 · 1549 阅读 · 0 评论 -
lua程序设计第二版 读书笔记(27-28章)
书本下载地址 http://download.csdn.net/detail/myy2012/5349646本部分下载地址 http://download.csdn.net/detail/myy2012/5433541 ps:最近几个月在公司都没事做,然后最近几天一直想着要不要辞职。最后还是跟领导说了,领导说再呆阵子原创 2013-05-23 11:44:43 · 1922 阅读 · 0 评论 -
获取utf8编码字符串正确长度的方法
--- 获取utf8编码字符串正确长度的方法-- @param str-- @return numberfunction utfstrlen(str) local len = #str; local left = len; local cnt = 0; local arr={0,0xc0,0xe0,0xf0,0xf8,0xfc} while left ~= 0 do local转载 2015-11-25 10:16:44 · 3351 阅读 · 0 评论