随笔分类 - lua
摘要:文件处理直接使用io调用io.close();文件流关闭io.flush();如果文件流以bufferd缓存模式处理,输入不会立即存入文件,需要调用本函数io.input(file);输入io.open(filename,mode);以相应的模式打开文件流.io.output(file)输出文件io...
阅读全文
摘要:Lua库基本函数assert(v,[,message])当v时false时,返回messageassert(money >0,"error -1001");collectgarbage([opt,[arg]]);//垃圾回收相关collet stop restart count step setpa...
阅读全文
摘要:Lua 介绍什么是lua - lua是一种跨平台开发脚本语言。Lua 历史学校 University of Rio de Janeiro国家 巴西作者 Roberto Ierusalimschy,Luiz Henrique Figueiredo Waldemar Celes小组 计算机图形小组公司 ...
阅读全文
摘要:项目使用db,网上查了半天全是vs和android的流程,没查到有mac的。这里记录一下。quick-cocos-x下的使用方法:a. 将dragonbones(放入ucocos2d_libs中), lua_dragonbones_auto.cpp,lua_dragonbones_auto.hpp(...
阅读全文
摘要:安装开发环境sublime - http://www.sublimetext.com/2package control - http://packagecontrol.io/installationrestartPreferences - Package Control - Install Pack...
阅读全文
摘要:macosx 安装 luacurl -R -O http://www.lua.org/ftp/lua-5.1.4.tar.gztar zxf lua-5.1.4.tar.gzcd lua-5.1.4make macosxsudo make install进入lua方法:输入lua回车常用语句prin...
阅读全文

浙公网安备 33010602011771号