Hello.
How to get the start arguments?
Thanks for replies.
And sorry for my English - I'm from Poland.
Start argumets in Love
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Start argumets in Love
You mean the command line arguments?
I've used the table arg, but that might be deprecated.
main.lua:
command line:
I've used the table arg, but that might be deprecated.
main.lua:
Code: Select all
print(unpack(arg))
Code: Select all
$ love . 1 2 3
. 1 2 3
Help us help you: attach a .love.
Re: Start argumets in Love
It working, thanks
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Start argumets in Love
Yeah, we can't recommend using that, the same (/a similar) table is passed as an argument to love.load, though.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Start argumets in Love
Oh, right.bartbes wrote:Yeah, we can't recommend using that, the same (/a similar) table is passed as an argument to love.load, though.
Forget what I said earlier and use:
Code: Select all
function love.load(arg)
print(unpack(arg))
end
Help us help you: attach a .love.
Who is online
Users browsing this forum: Google [Bot] and 1 guest