Made state changes in the AI affect the player score

This commit is contained in:
2014-06-28 08:48:26 -07:00
parent 6a5fa90484
commit e166d580fc
4 changed files with 26 additions and 3 deletions

View File

@@ -93,6 +93,7 @@ var AISprite = function(game, x, y, key, frame) {
state != STATE_ALERTED ) {
return;
}
awardPlayerScoreByState(state);
this.state_changed_at = new Phaser.Point(this.x, this.y);
this.startAwarenessTimer();
setAwarenessState(this, state);