Loading a .lua file multiple times...

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.
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: Loading a .lua file multiple times...

Post by s-ol »

ArchAngel075 wrote:hmm well seeing as ive already edited the file to be use OOP ill stick to it, it was more a matter of preference than function. Perhaps i can work on a setup that makes it easier while keeping OOP...

Anyhow thanks for the help, i might use the instancing lua files in another project in the future - learnt something new to play with afterall.
This doesn't have anything to do with lua files actually, it's just about seperating code and using OOP principles for convenience. You don't need an extra file for OOP and you don't need OOP to handle extra files. You also don't actually need extra files for what you are doing (you never need them actually)

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest