Face a random direction when you stop at a light
This commit is contained in:
@@ -316,7 +316,7 @@ var AISprite = function(game, x, y, key, frame) {
|
|||||||
this.turnRandomDirection = function() {
|
this.turnRandomDirection = function() {
|
||||||
var directions = [STATE_FACE_DOWN, STATE_FACE_LEFT,
|
var directions = [STATE_FACE_DOWN, STATE_FACE_LEFT,
|
||||||
STATE_FACE_RIGHT, STATE_FACE_UP];
|
STATE_FACE_RIGHT, STATE_FACE_UP];
|
||||||
setMovingState(this, game.rnd.integerInRange(0, 3]);
|
setMovingState(this, game.rnd.integerInRange(0, 3));
|
||||||
this.animations.stop();
|
this.animations.stop();
|
||||||
this.animations.play("bipedrun" + spriteFacing(this));
|
this.animations.play("bipedrun" + spriteFacing(this));
|
||||||
this.animations.stop();
|
this.animations.stop();
|
||||||
|
|||||||
Reference in New Issue
Block a user