Working on effect bubbles (visual indicators for awareness state changes)

This commit is contained in:
2014-06-15 14:17:26 -07:00
parent 7f9f7fd39c
commit d8be8cca59

View File

@@ -1283,9 +1283,9 @@ GameState.prototype.update = function()
if ( x.collide_with_player == false )
return;
if ( x.canSeeSprite(player, false) == true ) {
x.setAwarenessEffect(x, STATE_ALERTED);
x.setAwarenessEffect(STATE_ALERTED);
} else {
x.setAwarenessEffect(x, STATE_LOSTHIM);
x.setAwarenessEffect(STATE_LOSTHIM);
}
this.physics.arcade.collide(x, player);
}