You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Destroying a Blitter empties it of Bobs but doesn't destroy them.
Example Test Code
constblitter=this.add.blitter(0,0,'__WHITE');blitter.create(0,0);blitter.create(1,0);blitter.create(2,0);constbobs=blitter.children.list.slice();console.info('After blitter.create() x3');console.assert(blitter.children.list.length===3,'blitter should have 3 bobs');for(constbobofbobs){console.assert(bob.data!==undefined,'bob.data should not be undefined');console.assert(bob.frame!==undefined,'bob.frame should not be undefined');console.assert(bob.parent!==undefined,'bob.parent should not be undefined');}blitter.destroy();console.info('After blitter.destroy()');console.assert(blitter.children.list.length===0,'children.list should be empty');console.assert(blitter.children.parent===null,'children.parent should be null');for(constbobofbobs){console.assert(bob.data===undefined,'bob.data should be undefined');console.assert(bob.frame===undefined,'bob.frame should be undefined');console.assert(bob.parent===undefined,'bob.parent should be undefined');}console.info('Done!');
Activity
Blitter destroys Bobs when destroyed