require("lovesplash/lovesplash")
local Moan = require("Moan")
state = "lovesplash"
function love.draw()
if state == "lovesplash" then
lovesplash.draw()
else if state == "menu" then
Moan.speak("Title", {"Hello world!", "It's me;--Möan.lua"})
end
end
end
function love.update(dt)
if state == "lovesplash" then
lovesplash.update(dt)
if lovesplash.done() then
state = "menu"
end
end
end
function love.keypressed()
if state == "lovesplash" then
lovesplash.stop()
else if state == "exit" then
love.event.quit()
else
end
end
end
function love.mousepressed()
if state == "lovesplash" then
lovesplash.stop()
else if state == "exit" then
love.event.quit()
else
end
end
end
These errors do not match the current state of that lib. Check again if you didn't do any modifications to it, or whether you're using an older version.
If you can't find the error, post a love file. The code you posted is not the culprit.
And don't triple post, edit your comments to add new info.
...and you didn't feel like telling us that the errors you made this thread for magically solved themselves and that you have a different problem with it now?
You're not using it correctly, you have to call Moan.draw to see something. And calling Moan.speak in every frame may also not be correct, but I don't know that lib.