What's The Matter

Due to some recent changes to the matter physics plugin, the following changes need to be made:

In the survival-game.js add .default to the end of the plugin line

plugins: {
    scene: [
      {
        plugin: PhaserMatterCollisionPlugin.default,
        key: 'matterCollision',
        mapping: 'matterCollision'
      }
    ]
  }

In index.html use the latest version of phaser by changing the phaser script line to:

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>


Complete and Continue