lua
Corona/Box2D detect collision with non-moving static objects
For posting reasons here\'s a simple version of what I\'m trying to do. On the screen I have a simple circle object that is static and doesn\'t move. The user can then drag and drop a straight line.[详细]
2023-04-11 11:12 分类:问答How to create a file name with current date & time in lua?
I want to write a table into a file which named by the date and time it created. I can open a file with hard coded name, write the table into it, like below:[详细]
2023-04-11 07:47 分类:问答How do I detect a collision with a poly line in the lua love engine?
I am using the lua love engine to make a simple game. However, im having a little trouble with collision.[详细]
2023-04-11 00:31 分类:问答Linkage error using shared dll with minimal C++/SWIG/Lua code
This is a really specific compilation problem involving C++, SWIG and Lua. I have a really simple base code :[详细]
2023-04-10 23:33 分类:问答Calling C function from lua
Can someone tell me is it p开发者_开发技巧ossible to somehow call c function or simply wrap it into a lua function WITHOUT building a new module.If it works for you, try the FFI library. See also luaf[详细]
2023-04-10 12:28 分类:问答bytearray:set_size(5) fails for Lua Wireshark
In a Lua-based dissector, I would like to transform a tvb content to an other tvb. The code: loca开发者_如何学Cl strbuf = buffer(offset, strlen * 2) -- range from tvb[详细]
2023-04-10 05:14 分类:问答Order numbers with Lua
I\'m trying to make something to find the median, mode, mean, and range of a set of data. Mean is easy to find using the programming; but median, mode, and range require the numbers to be in order (fr[详细]
2023-04-09 23:46 分类:问答Something like Apache Zookeeper with no java?
Is there some library or project out there that works like Zookeeper but has no java depende开发者_StackOverflowncy?I\'m looking at putting this on an embedded linux system, and need minimal footprint[详细]
2023-04-09 19:46 分类:问答Getting return status AND program output
I need to use Lua to run a binary program that may write something in its stdout and also returns a status code (also known as \"exit status\").[详细]
2023-04-09 19:28 分类:问答For Loop on Lua
My assignment is how to do a for loop. I have figured it out in terms of numbers but cannot figure it out in terms of names. I would like to create a for loop that runs down a list of names. Following[详细]
2023-04-09 11:12 分类:问答