platipy / spyral

http://platipy.org
Other
49 stars 12 forks source link

Layers might be slightly broken #62

Open acbart opened 10 years ago

acbart commented 10 years ago

A student reported that they had to define the .layers property before they could set .layer property. Need to repro and confirm, but I wouldn't be surprised considering how under-tested layers are.

icarito commented 9 years ago

makes sense as .layers belongs to Scene and .layer belongs to Sprite. It should error out if you are defining a layer that doesn't exist, or at the very least if your scene has no layers defined at all. I'd close this one.

acbart commented 9 years ago

That's probably a reasonable restriction - I thought it would be convenient to let them write them in any order, but the layering system is a little delicate and probably shouldn't be too trifled with.