LOVEDownloader - A download library
Posted: Sun Dec 08, 2013 7:24 pm
LOVEDownloader is a library that let you download files very easy and with seeing the progress.
A documentation is on Github: https://github.com/Joemag/LOVEDownloader
Demo 0.8.0: https://www.dropbox.com/s/sefd8vo83kcu6 ... ample.love
Demo 0.9.0: https://www.dropbox.com/s/ax9o12sc2q3c0 ... ample.love
Download Very easy
A documentation is on Github: https://github.com/Joemag/LOVEDownloader
Demo 0.8.0: https://www.dropbox.com/s/sefd8vo83kcu6 ... ample.love
Demo 0.9.0: https://www.dropbox.com/s/ax9o12sc2q3c0 ... ample.love
Download Very easy
Code: Select all
LOVEDownloader = require('LOVEDownloader')
function love.load()
file = LOVEDownloader.download("http://www.randomnumber.org/randdata/1MB_200409232104.dat", "file.dat", {
update = function(per, down, size)
print(per, down, size)
end
})
file:start() -- Start download
end
function love.update()
file:update()
end
function love.draw()
love.graphics.print(math.floor(file.progress*100) .. "%", 10, 10)
if file.success then
print("success")
end
end