Anyway, I just finished part 10 - Hitboxes (https://www.youtube.com/watch?v=POVQBI9 ... B05A624D91) and everything works fine. When I click the zeppelin, the console says "Hit!". The thing is after I finish each part I like to go through the "path" of the code to make sure I understood what happened.
In this video, he created
Code: Select all
function insideBox()
Code: Select all
function ents.shoot()
What I don't understand is how I was able to call insideBox() from another file, namely entities.lua. Now, main.lua does contain the line
Code: Select all
require("entities")
I suspect there's something about the lua language that I'm missing here.. Could anyone point me in the right direction? When I search for this, I keep running into questions from people who are getting errors and not being able to call a function from a different file. Not my case.