Close #10 : AI stops and chats when they touch each other

This commit is contained in:
2014-07-11 08:10:42 -07:00
parent ce098c1e37
commit a8d33e956d
5 changed files with 60 additions and 36 deletions

View File

@@ -399,7 +399,14 @@ GameState.prototype.update = function()
// this.effectSprites.forEach(_player_collide, this);
function _AI_collide(o1, o2)
{
o1.collide_with_AI(o2);
}
this.aiSprites.forEach(_player_collide, this);
game.physics.arcade.overlap(this.aiSprites, this.aiSprites,
_AI_collide);
this.updateShadowTexture();
if ( this.aiSprites.debug == false ) {