Odustggg Personal Original, welcome to reprint, reprint please indicate the source, http://blog.csdn.net/odustggg/article/details/8195137First, find the cocos2d-x tool tolua ++ in the Engine Directory
Ii. Use tolua ++ to generate a custom class
Lua script syntax description (add some features of lua5.1)Lua's syntax is relatively simple and easier to learn, but its functions are not weak.Therefore, I will simply sum up some of Lua's syntax rules for easy query. After reading it, you
UseLuaPlusIntegration in C ++ ProjectsLua scriptImplementation is the content to be introduced in this article, mainly to learnLua script. It took two days to complete integration in the C ++ project.Lua scriptFeasibility analysis. The following job
Compilation of LUA 5.1And instance operations are the content to be introduced in this article. I have never touched on it before, and I have little information to find. It takes two days to complete the operation .. generally, it is developed in vs2
HowJavaUsed inLua scripting languageIs the content to be introduced in this article, mainly to learnLUA scripting languageInJAVAHow to use it,LuaNow it's popular, and the syntax is quite simple.JavaFor a long time, I recorded some things below for
Java programmer cultivation: Logging (1/3) and java programmer Cultivation
Preface:
As the first topic of the blog "Java programmer Cultivation", I plan to write the following three articles:
PS: the default directory is incorrect. I checked it
Overview
This is a quick tutorial on the Wax framework. Through this tutorial, you will eventually understand how interesting it is to use Wax in OC.
Wax is the adhesive between OC and Lua. That is to say, you can communicate between OC and
Lua Study Notes 11: Tips in lua, lua Study Notes
The tips in lua are the special features of the basic lua language.
Clever Use or
x = x or v
It is equivalent:
if not x then x = vend
If x is nil or false, assign it a value
Binary ternary
VS build lua development environment and LuaBridge register c ++ class (cocos2dx project) (1), luabridgecocos2dx
Because the project uses Lua development and has recently studied lua, we are preparing to build a lua development environment under.
Source: http://www.cppblog.com/Leaf/archive/2009/05/16/83145.html
It is said that the author of this article is ogdev's hack master.
Use examples to learn about Lua (1) ---- Hello World
1. PrefaceThe scripting language is indispensable in
The basic function library is the built-in function library of Lua and does not require additional loading.
Assert (V [, message])Function: equivalent to the assertion of C,Parameters:V: When expression V is nil or false, an error is
LinkToOriginal: Http://www.learn-cocos2d.com/2011/08/comparison-lua-scripting-corona-sdk-wax-kobold2d/comment-page-1/#comment-232193
This kobold2d FAQ article explains the difference between Corona SDK and iPhone wax library, and evaluates the
Introduction to Lua Message ProcessingThe GUI message processing is separated from the code and handed over to the Lua script for processing, which can bring great flexibility to your interface. GuiCan be easily modified during the test.The content
If you want the table to be used, it will be replaced by a default value when it is nil. refer to the following method.
I use a count table, which can be counted when I iterate other data structures.
countTable = {}; ... thingImCounting =
Lua is a small scripting language. PontificalA research group at Catholic University of Rio de Janeiro was developed in 1993 by Robert to ierusalimschy, Waldemar Celes, and Luiz Henrique De Figueiredo. For a brief introduction, see:
From Lua 5.1 onwards, we can use the require and module functions to obtain and create modules in Lua. From the user's point of view, a module isProgramLibrary, which can be loaded through require. Then a global variable of table type is obtained.
[Turing Book recommendation] the English version of classic books will be available soon
Andy Hunt & David Thomas
《ProgramThe path to Cultivation (The pragmatic programmer)
Martin Fowler & Kent Beck, etc.
Reconstruction
Martin Fowler
Enterprise
In windows, openresty uses lua for interface forwarding and secondary encapsulation, and openrestylua
Requirement: according to the customer's requirements, you can use lua in ngx to encapsulate the interface and re-forward it to the user or a third
[Lua] Lua Memory leakage detection principleLua Memory leakage
First, the memory leakage in lua is essentially different from the memory leakage in c/c ++.
Lua has a garbage collection mechanism (GC), So theoretically there will be no memory leakage.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.