Code: Select all
function love.play ()
music = love.audio.newSource("castle.mp3", "stream")
love.audio.play("music")
love.audio.setVolume(1.0)
end
Code: Select all
function love.play ()
music = love.audio.newSource("castle.mp3", "stream")
love.audio.play("music")
love.audio.setVolume(1.0)
end
Are you just new to LÖVE, or new to Lua or even programming altogether?cvbnmme4th wrote:I'm very new to this.
Code: Select all
function love.play ()
music = love.audio.newSource("castle.mp3", "stream")
love.audio.play(music)
love.audio.setVolume(1.0)
end
Code: Select all
function love.play ()
source = "castle.mp3"
soundtype = "stream"
music = love.audio.newSource(source, soundtype)
love.audio.play(music)
love.audio.setVolume(1.0)
end
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 4 guests