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,
"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,
"height":0,
"name":"BigTopCustomer2",
"properties":
{
"sprite_group":"townsfolk-female"
"sprite_group":"townsfolk-female",
"sprite_name":"townsfolk-female-2"
},
"type":"AI",
"visible":true,
@@ -240,7 +225,8 @@
"name":"BigTopCustomer2",
"properties":
{
"sprite_group":"townsfolk-male"
"sprite_group":"townsfolk-male",
"sprite_name":"townsfolk-male-3"
},
"type":"AI",
"visible":true,

View File

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