mwg API
    Preparing search index...

    Function tileShrink

    • The old picture cut into tiles that each shrink to nothing, in order, uncovering the new scene.

      Parameters

      Returns SceneTransition

      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'