Fixing a bug where lights disappeared too soon

This commit is contained in:
2014-06-14 17:07:41 -07:00
parent b0d5b96ae8
commit 267bae76aa
2 changed files with 1 additions and 5 deletions

View File

@@ -164,8 +164,6 @@
"name":"FountainGuard",
"properties":
{
"can_move":"false",
"collide_with_player":"true",
"sprite_group":"townsfolk-female",
"sprite_name":"townsfolk-female-3"
},
@@ -181,7 +179,7 @@
"name":"FountainPerson",
"properties":
{
"can_move":"false"
},
"type":"",
"visible":true,

View File

@@ -630,7 +630,6 @@ var AISprite = function(game, x, y, key, frame) {
return false;
var sprrect = new Phaser.Rectangle(spr.x, spr.y, 32, 32);
if ( viewrect.intersects(sprrect) || viewrect.containsRect(sprrect) ) {
console.log("I SEE YOU YOU FUCKER");
return true;
}
return false;
@@ -940,7 +939,6 @@ GameState.prototype.updateShadowTexture = function() {
this.game.camera.width,
this.game.camera.height);
if ( ! light.rect.intersects(r1) ) {
console.log("Light does not appear on camera");
return;
}
}