Search found 3 matches
- Sat Aug 22, 2015 9:22 am
- Forum: Support and Development
- Topic: How to run a lua file
- Replies: 7
- Views: 14030
Re: How to run a lua file
Put something like this in a separate file: local Foo = {}; function Foo.someFunction() ... end return Foo; and then in your main file: local Foo = require("Foo"); -- Call function from other module. Foo.someFunction(); Also if you want to do options and stuff like that you should read ab...
- Fri Aug 21, 2015 10:40 pm
- Forum: Support and Development
- Topic: How to run a lua file
- Replies: 7
- Views: 14030
Re: How to run a lua file
I want to run other love script. Like options... Or actual game... Sorry for not accurate post.
- Wed Aug 19, 2015 9:55 pm
- Forum: Support and Development
- Topic: How to run a lua file
- Replies: 7
- Views: 14030
How to run a lua file
I was searching it in wiki, but didn't found it. How do I run other lua file?