This commit is contained in:
2014-06-15 12:56:08 -07:00
parent 81897bffe5
commit d29f41761d
2 changed files with 15 additions and 29 deletions

View File

@@ -204,29 +204,14 @@
"x":320, "x":320,
"y":480 "y":480
}, },
{
"gid":3544,
"height":0,
"name":"BigTopGuard",
"properties":
{
"sprite_canmove":"false",
"sprite_group":"townsfolk-guard",
"sprite_name":"townsfolk-guard2"
},
"type":"AI",
"visible":true,
"width":0,
"x":320,
"y":480
},
{ {
"gid":3544, "gid":3544,
"height":0, "height":0,
"name":"BigTopCustomer2", "name":"BigTopCustomer2",
"properties": "properties":
{ {
"sprite_group":"townsfolk-female" "sprite_group":"townsfolk-female",
"sprite_name":"townsfolk-female-2"
}, },
"type":"AI", "type":"AI",
"visible":true, "visible":true,
@@ -240,7 +225,8 @@
"name":"BigTopCustomer2", "name":"BigTopCustomer2",
"properties": "properties":
{ {
"sprite_group":"townsfolk-male" "sprite_group":"townsfolk-male",
"sprite_name":"townsfolk-male-3"
}, },
"type":"AI", "type":"AI",
"visible":true, "visible":true,

View File

@@ -1201,17 +1201,17 @@ GameState.prototype.update = function()
this.aiSprites.forEach(_inner_collide, this); this.aiSprites.forEach(_inner_collide, this);
this.updateShadowTexture(); this.updateShadowTexture();
function _draw_viewrect(x) { // function _draw_viewrect(x) {
var r = x.viewRectangle(); // var r = x.viewRectangle();
if ( r == null ) // if ( r == null )
return; // return;
this.shadowTexture.context.fillStyle = 'rgb(128, 128, 128)'; // this.shadowTexture.context.fillStyle = 'rgb(128, 128, 128)';
this.shadowTexture.context.fillRect(r.left, // this.shadowTexture.context.fillRect(r.left,
r.top, // r.top,
r.width, // r.width,
r.height); // r.height);
} // }
this.aiSprites.forEach(_draw_viewrect, this); // this.aiSprites.forEach(_draw_viewrect, this);
if (game.time.fps !== 0) { if (game.time.fps !== 0) {
this.fpsText.setText(game.time.fps + ' FPS'); this.fpsText.setText(game.time.fps + ' FPS');