(function() { "use strict"; var CollisionSystem = function() { this.initialize(); } var p = CollisionSystem.prototype = new creatine.System(); p.initialize = function() { } p.process = function(boids, fdelta) { for (var i=0; i dist(px, py, cx, cy)) { return; } } if (getTile(hardBlocks, tx, ty2)) { flock.velocityY = 0; } if (getTile(hardBlocks, tx2, ty)) { flock.velocityX = 0; } } window.CollisionSystem = CollisionSystem; })();