Hello,
I was looking the source of this platformer engine : https://yal.cc/love2d-platformer-engine/
In the love.load() we can see level.next()
I have no idea what this line does. It is the same as this : https://www.lua.org/manual/2.4/node31.html ?
Can you explain me what it does ?
Thank you.
table.next()
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: table.next()
It doesn't refer to any inbuilt functionality, the (specific) table 'level' contains a function called 'next'. You can find its definition in stages.lua.
By the way, that's a very old version of the documentation for lua 2.4. Love uses luajit by default, which is compatible with lua 5.1.
By the way, that's a very old version of the documentation for lua 2.4. Love uses luajit by default, which is compatible with lua 5.1.
Re: table.next()
Thought I cancelled my post...
Don't know how I could miss the next function in stages.lua.
Thanks for the info !
Don't know how I could miss the next function in stages.lua.
Thanks for the info !
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 7 guests