This is my first post here.
I'm brazillian and my english is a bit poor. Hope you can understand me. =)
I have a file (utils.lua) with a code for padded imagens that i have found here in the forum.
In another file I add utisl.lua with a require(). This second file (essentials.lua) is for put all common code of the game.
Code: Select all
require("lib/oo/middleclass")
require("lib/graphics/utils")
If I put 'require("lib/graphics/utils")' in start.lua, its work.Error
src/states/start.lua:18: attempt to call global 'newPaddedImage' (a nil value)
Traceback
src/state/start.lua:18: in function 'initialize'
.\lib/oo/middleclass.lua:22: in function 'new'
main.lua:15: in function 'load'
[C]: in function 'xpcall'
How can i fix it?