Hi all,
Trying to convert a JavaScript game into lua, and found this command:
_aTilesMc.push(new CTile(i,aPos[i],szRandValue,aLeftBlocks[i],aRightBlocks[i],aUpBlocks[i],aBlockingList[i],aTileHeight[i]));
_aTilesMc is an array (table in lua) and push is like insert an element into it.
Dunno what CTile is, but how do you add a new multi value element into a table like this?
Also:
aTilesMc[i].init(pPos);
Can’t find an ‘init’ command in JavaScript for arrays, so not sure what init does?