mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-15 16:58:45 -04:00
Preserve sprite layer order information across saving and loading an sb3.
This commit is contained in:
parent
dc612fb4a1
commit
812e7a3772
7 changed files with 133 additions and 7 deletions
test/unit
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue