Hi guys,
I’m trying to create a module because I’m thinking this is the way to package my functions:
enemy.lua
----------------------------------
module(..., package.seeall)
function newZombie() end
main.lua
----------------------------------
require "enemy"
local zombie = enemy.newZombie()
When I run it, it says module not found. enemy.lua and main.lua are in the same directory. How do I fix this? Is this even the right approach to a cleaner and more manageable code?
Thanks! My apologies. This is my 1st day of coding lua.
Jon [import]uid: 3544 topic_id: 246 reply_id: 300246[/import]