Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/gameobjects/particles/ParticleEmitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ var GameObject = require('../GameObject');
var GetFastValue = require('../../utils/object/GetFastValue');
var GetRandom = require('../../utils/array/GetRandom');
var GravityWell = require('./GravityWell');
var HasAll = require('../../utils/object/HasAll');
var HasAny = require('../../utils/object/HasAny');
var HasValue = require('../../utils/object/HasValue');
var Inflate = require('../../geom/rectangle/Inflate');
Expand Down Expand Up @@ -978,7 +979,7 @@ var ParticleEmitter = new Class({

this.acceleration = (this.accelerationX !== 0 || this.accelerationY !== 0);

this.moveTo = (this.moveToX !== 0 && this.moveToY !== 0);
this.moveTo = HasAll(config, [ 'moveToX', 'moveToY' ]);

// Special 'speed' override

Expand Down