TileMap Testcase abnormal

This commit is contained in:
ZhangMenghe 2015-08-07 11:20:17 +08:00
parent 0f3a2ca642
commit 7753a07359
1 changed files with 1 additions and 2 deletions

View File

@ -759,7 +759,6 @@ var TMXOrthoObjectsTest = TileDemo.extend({
var drawNode = new cc.DrawNode();
drawNode.setLineWidth(3);
drawNode.setDrawColor(cc.color(255,255,255,255));
this.addChild(drawNode);
var map = new cc.TMXTiledMap(s_resprefix + "TileMaps/ortho-objects.tmx");
this.addChild(map, 0, TAG_TILE_MAP);
@ -784,7 +783,7 @@ var TMXOrthoObjectsTest = TileDemo.extend({
drawNode.drawSegment(cc.p((x + width), (y + height)), cc.p(x, (y + height)));
drawNode.drawSegment(cc.p(x, (y + height)), cc.p(x, y));
}
map.addChild(drawNode);
//Automation parameters
this.testObjects = array;
},