Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var FluxmaxStoreMixin = require('fluxmax').StoreMixin;
var EventEmitter = require('event-emitter');
var BaseStore = function(){
};
_.extend(BaseStore.prototype, EventEmitter.prototype, FluxmaxStoreMixin, {
});
module.exports = BaseStore;
constructor(clientEngine){
Object.assign(this, EventEmitter.prototype);
this.clientEngine = clientEngine;
this.renderer = clientEngine.renderer;
this.touchContainer = document.querySelector('.pixiContainer');
this.setupListeners();
this.activeInput = {
up: false,
left: false,
right: false
};
let onRequestAnimationFrame = () => {
this.handleMovementInput();
window.requestAnimationFrame(onRequestAnimationFrame);
};