rocking Posted November 10, 2016 Share Posted November 10, 2016 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 More sharing options...
Recommended Posts