lua
Overhead of copying lua functions
I have a lot of lua-script with the same name used for function name (intended for \"entry point\") and I want to run them. But I want to make it as fast as possible.[详细]
2023-04-03 07:51 分类:问答Corona "tick" issues - addEventListener
I\'ve been trying to write out a custom tick using the Corona SDK (using Lua).The key seems to be these \"eventListeners,\" but I\'m also trying to get them to work with classes.right now i have this[详细]
2023-04-03 07:42 分类:问答Pixel Collision Tracing
I have a character that\'s say, 20 by 10 pixels large and I have a collision map based on pixels (think worms).[详细]
2023-04-03 01:35 分类:问答Reading Lua table(s) from args in C - incorrect stack level?
The simple version is that I expect my __tostring method I have built in C to output \"glxy_object(100)\" when I print the object in Lua.It does this perfectly if I comment out the code between the \"[详细]
2023-04-03 01:28 分类:问答Lua: How to execute different blocks depending on conditions?
I have this table: no_table ={ {a=\"3\", b=\"22\", c=\"18\", d=\"ABC\"}, {a=\"4\", b=\"12\", c=\"25\", d=\"ABC\"},[详细]
2023-04-02 10:56 分类:问答Lua - fast changing images
I\'m not a programmer, even amateur, I just wanted a program that would change PSP screen (whole) color as fast as possible infinitely. I made something:[详细]
2023-04-02 06:09 分类:问答Images in an array, not spacing correctly
The shapes are at the top of the image. http://picturepush.com/public/6472916 The code looks like this:[详细]
2023-04-02 04:22 分类:问答Passing C struct pointer to lua script
I would like to know is there a way to pass a struct pointer to a lua script, and reach it\'s members from lua without copy (for read and write purposes).[详细]
2023-04-02 02:15 分类:问答Creating new files with Lua I/O functions
I\'m starting to learn about the io. functions, and am trying to implement them in my code.I\'ve searched for the answer to this and nothing 开发者_Go百科seems to give a clear cut yes or no, or at lea[详细]
2023-04-02 02:01 分类:问答Why don't these circles have different colors?
Why does: local circle = {} for i = 1, 15 do 开发者_Python百科for j = 1, 15 do circle[i] = display.newCircle( 0 + (i*20), 100 + (j*20), 9)[详细]
2023-04-02 01:34 分类:问答