table.next()

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Nekyia
Prole
Posts: 8
Joined: Thu Aug 03, 2017 4:25 pm

table.next()

Post by Nekyia »

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.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: table.next()

Post by bartbes »

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.
Nekyia
Prole
Posts: 8
Joined: Thu Aug 03, 2017 4:25 pm

Re: table.next()

Post by Nekyia »

Thought I cancelled my post...
Don't know how I could miss the next function in stages.lua.
Thanks for the info !
Post Reply

Who is online

Users browsing this forum: Google [Bot], IsraelSX, Semrush [Bot] and 4 guests