(function() { "use strict"; var SheepEntity = function() { this.initialize(); } var p = SheepEntity.prototype = new creatine.Entity(); p.__Entity_initialize = p.initialize; p.initialize = function() { this.__Entity_initialize(); this.display = new createjs.Bitmap(loader.getResult('img_sheep')); var bounds = this.display.getBounds(); this.display.regX = bounds.width/2; this.display.regY = bounds.height/2; this.display.rotation = Math.random()*360; this.display.lastAngle = Math.random()*360; this.addComponent(new FlockComponent()); } window.SheepEntity = SheepEntity; })();