Preserve sprite layer order information across saving and loading an sb3.

This commit is contained in:
Karishma Chadha 2018-07-24 11:00:48 -04:00
parent dc612fb4a1
commit 812e7a3772
7 changed files with 133 additions and 7 deletions
test/unit

View file

@ -42,3 +42,9 @@ test('tan', t => {
t.strictEqual(math.tan(33), 0.6494075932);
t.end();
});
test('reducedSortOrdering', t => {
t.deepEqual(math.reducedSortOrdering([5, 18, 6, 3]), [1, 3, 2, 0]);
t.deepEqual(math.reducedSortOrdering([5, 1, 56, 19]), [1, 0, 3, 2]);
t.end();
});