diff --git a/moonlight/gfx/map.json b/moonlight/gfx/map.json index 9667ce0..fdc9475 100644 --- a/moonlight/gfx/map.json +++ b/moonlight/gfx/map.json @@ -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, diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index c833a18..2d1a5aa 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -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');