The old picture cut into tiles that each shrink to nothing, in order, uncovering the new scene.
order
import { tileShrink } from '@datamoc/mwg/two-d/render';const transition = tileShrink({ columns: 8, rows: 5, order: 'diagonal' });// Game.current.switchScene(NextLevel, { transition, duration: 0.6 });console.log(transition.name); // 'tileShrink' Copy
import { tileShrink } from '@datamoc/mwg/two-d/render';const transition = tileShrink({ columns: 8, rows: 5, order: 'diagonal' });// Game.current.switchScene(NextLevel, { transition, duration: 0.6 });console.log(transition.name); // 'tileShrink'
The old picture cut into tiles that each shrink to nothing, in
order, uncovering the new scene.