(function() { "use strict"; var WolfEntity = function() { this.initialize(); } var p = WolfEntity.prototype = new creatine.Entity(); p.__Entity_initialize = p.initialize; p.initialize = function() { this.__Entity_initialize(); this.display = new createjs.Bitmap(loader.getResult('img_wolf')); var bounds = this.display.getBounds(); this.display.regX = bounds.width/2; this.display.regY = bounds.height/2; this.addComponent(new PredatorComponent()); } window.WolfEntity = WolfEntity; })();