Hello nice people of this awesome forum. It’s driving me insane, that I can’t get this to work. Especially because it works in another code of mine. Of must have not seen an crusial error :(. I hope that your wisdom is better than mine!
function Map:new(w, h, size) local newMap = setmetatable({}, self) return newMap end function Map:drawMap() print('test') end
local mapData = Map:new(2,5,30)
mapData:drawMap()