STI and Bump setup issues
Posted: Thu Nov 19, 2020 3:48 pm
this is my code to initialize bump world by using STI map
and this is the error that came to me
Code: Select all
function love.load()
require 'conf';
require 'vars';
bump = require 'maps/bump';
loc= require("maps/lv1")
local sti = require "maps"
world = bump.newWorld(16)
test = love.audio.newSource("audio/03 Towering Chieftain.mp3","static")
map = sti(loc ,{"bump"})
map:bump_init(world)
end
Error
main.lua:11: attempt to call method 'bump_init' (a nil value)
Traceback
main.lua:11: in function 'load'
[C]: in function 'xpcall'
[C]: in function 'xpcall'