kikito / love-loader

Threaded resource loading for LÖVE
http://love2d.org
MIT License
131 stars 16 forks source link

The lib should be stateless #6

Open kikito opened 10 years ago

kikito commented 10 years ago

Right now the library holds a lot of state in vars. I don't like that.

local loader = require 'love-loader'

local loader1 = loader.newLoader(finishedCallback, loadedCallback)

loader1:newImage(  images, 'rabbit', 'path/to/rabbit.png')
loader1:newSource( sounds, 'iiiik',  'path/to/iiik.ogg')
loader1:newSource( sounds, 'music',  'path/to/music.ogg', 'stream')

This fixes two things:

We can probably use a single resource-loading thread for all the extra loaders (as opposed to one per loader); but we shall see.

kikito commented 6 years ago

I have no time to dedicate to this project so I have decided to declare it unmaintained and close all open issues.

ghost commented 2 years ago

reopened and never talked in again

ghost commented 2 years ago

it worked!?!!?!?!!1!1!?

TannerRogalsky commented 2 years ago

I think my reopening of this was more aspirational than anything. Otherwise there would be a corresponding PR. But it's been many years so your guess is as good as mine at this point.