Fixing a bug where lights disappeared too soon
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user