From 22745f6300f76c471ee6a34a61381ef539dbe3ed Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Thu, 19 Jun 2014 08:03:54 -0700 Subject: [PATCH] Look in random directions instead of always going clockwise --- moonlight/js/moonlight-skulk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index fda570f..2b2c8e5 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -1035,7 +1035,7 @@ var AISprite = function(game, x, y, key, frame) { if ( this.rotation_timer == null ) { console.log("I can't see the player - turning so I can"); this.rotation_timer = game.time.create(false); - timerev = this.rotation_timer.add(250, this.turnFaceRight, this); + timerev = this.rotation_timer.add(250, this.turnUnseenDirection, this); this.rotation_timer.start() } }