here's the file... Here's the bit where I load the sounds (in norm.lua):
Code: Select all
sounds = {}
for x = 1, 4 do
sounds[x] = love.audio.newSource('/res/slaps/slap'..x..'.ogg')
end
Code: Select all
function love.keypressed(k)
local rand = math.random(1,4)
if (k == 'x' or
k == 'z' or
k == ' ') then
love.audio.play(sounds[rand])
hand.slap()
end
end
P.S. also, I haven't tried making them into .ogg's. I'll try it now
EDIT: I just tried putting OGG's instead, and it works slightly better. It stills sometimes doesn't play... I still need some help. I updated the file with the new ogg files.