diff --git a/examples/particles/particles.js b/examples/particles/particles.js index c48ae28..f348124 100644 --- a/examples/particles/particles.js +++ b/examples/particles/particles.js @@ -67,7 +67,7 @@ window.onload = function () { } }; - + emitter.setParticleParent(mainScene); emitter.emitting = true; diff --git a/src/classes/keyboardinput.js b/src/classes/keyboardinput.js index 855382b..902f991 100644 --- a/src/classes/keyboardinput.js +++ b/src/classes/keyboardinput.js @@ -119,7 +119,7 @@ class KeyboardInput { isPressed (keyCode) { - return !!this._keyState[keyCode]; + return !!this._keyState[keyCode]; }