Jump to content

Phaser Arcade Slopes ES6 help


rocking
 Share

Recommended Posts

I've been trying to get a ES6 version of a game together. I've had to shim Phaser (to get around a PIXI is undefined issue).

'use strict';

require('./../../dist/pixi');
require('./../../dist/phaser');
require('./../../dist/phaser-arcade-slopes');

module.exports = Phaser;

I've wanted to incorporate a plugin (phaser-arcade-slopes), so I attach it to Phaser in the Shim (see above). There seems to be an issue when I start to use it. I get:

SAT is undefined

This is a library phaser-arcade-slopes relies on.

Here is my code.

https://github.com/richardhealy/emagine

Should be pretty easy to setup.

nom install
npm run build-init
nom build

If you go to index.html, you'll see the error in the console.

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...