Closed Tymewalk closed 8 years ago
Hmm
I'm thinking directly reorder the sprite list, adding z-indexes wold just increase complexity.
I think that we should use z-indexes because
sprite.zIndex
sorted(sprites, key=(lambda s: s.zIndex))
true
So I think z-indexes are the way to go. I'll get on that, it shouldn't be too hard.
In #31 I added the z-indexes. So I'm closing this since we've reached a conclusion and added it with no problems.
(For the last two tasks in #2.)
I was thinking about how I would go about doing layers with Slither and I came up with two solutions:
sprites
listsprites
listRe-ordering allows us to use "go to front" and "go back () layers" functions, but z-indexes would allow us to quickly sort the
sprites
list.@BookOwl, @Omegabyte, what do you guys think?