This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-var */ | |
var path = require('path'); | |
var autoprefixer = require('autoprefixer'); | |
const MATCH_ALL_NON_RELATIVE_IMPORTS = /^\w.*$/i; | |
module.exports = [{ | |
output: { | |
filename: '[name].js', | |
library: 'atrium-react-plugin-beta', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A plugin to make your sprites explode in pieces. :-) | |
* For Phaser 2.4.x | |
* | |
* This was uploaded on request, and is a unmodified version of the one I use in my game "Robotic Conflict". It will contain bugs, poor practieses or even parts built on special cases used by Robotic Conflict. | |
* | |
* Feedback to [email protected] | |
* | |
* See this exact version in action here, Robotic Conflict: http://dev.niklasberg.se/roboticConflict/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var normalize = Phaser.Point.normalize; | |
var zero = new Phaser.Point(0, 0); | |
class Joystick extends Phaser.Sprite { | |
constructor({x, y, holder, pin}) { | |
super(game, 0, 0, holder); | |
this.anchor.setTo(0.5, 0.5); | |
this.fixedToCamera = true; | |
this.cameraOffset.setTo(x, y); |