Home > other >  Cocos2d - x lua table
Cocos2d - x lua table

Time:09-20

Use lua scripting language to write logic, playing mahjong type development, one of the most important is the table (table), create expression is tectonic expression form is: {}, use commas to separate between element and element, and can seriously in the table to the nested in the form of a table, this is a person of lua learn basic create table form

CodePudding user response:

Lua is basically the use of all kinds of table, even the callback can be on the table, is very convenient

CodePudding user response:

Yes, all kinds of calls

CodePudding user response:

Data structure in lua table only, but in time or to pay attention to, especially the loop, for processing in pairs and ipairs distinction and unloading
  • Related