Opening a second lua file

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
User avatar
Le_juiceBOX
Citizen
Posts: 71
Joined: Sat Mar 26, 2016 3:07 pm

Opening a second lua file

Post by Le_juiceBOX »

I was wondering if i could open a second main.lua file? I'm just curious.
SteamLibrary-like Program For Love2D Games:
take me to the forum thread!
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Opening a second lua file

Post by raidho36 »

Not sure what you mean "open". The framework automatically picks up a .lua file that's called "main" and runs it, and that's it, that's the whole story. You can run more files manually, by using the "dofile" command, or by using modules via "require".
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot] and 15 guests