Map work
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user