From fea8d18e5a29bd021eb051a48665115d3c4d42de Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sat, 14 Jun 2014 14:57:12 -0700 Subject: [PATCH] Making AI able to 'see' the player --- moonlight/js/moonlight-skulk.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index 441ecd5..30c33da 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -113,7 +113,6 @@ SoundSprite.prototype.update_new_values = function() { this.sound_volume, this.sound_loop, this.sound_forcerestart); - console.log(this); } SoundSprite.prototype.adjust_relative_to = function(spr) { @@ -568,7 +567,6 @@ function stringSize(str, font) h = o.height(); o.remove(); - console.log("stringSize : " + [w, h] + " : " + str); return [w, h]; } @@ -722,7 +720,6 @@ var AISprite = function(game, x, y, key, frame) { this.bubble_sprite = game.add.sprite(this.x, this.y, 'wordbubble'); this.bubble_sprite.anchor.setTo(0.5, 0.5); this.bubble_text = game.add.text(this.x, this.y, text, style); - console.log(this.bubble_text_offsets); this.snap_bubble_position(); this.timer = game.time.create(false); @@ -1139,8 +1136,6 @@ GameState.prototype.update = function() } if ( x.collide_with_player == false ) return; - console.log(this); - console.log("Can see the player : " + x.canSeeSprite(player)); this.physics.arcade.collide(x, player); }