[game] added dota maps

This commit is contained in:
2018-02-05 22:24:00 +03:00
parent feb5bafe72
commit 15d830a0d4
7 changed files with 19 additions and 39 deletions

View File

@@ -84,6 +84,15 @@ class MapEditView extends SpriteView {
width = mapWidth;
height = mapHeight;
}
g.lineStyle(1, 0x007700);
for (x in 0...map.gridWidth) {
g.moveTo(x * map.cellWidth, 0);
g.lineTo(x * map.cellWidth, mapHeight);
}
for (y in 0...map.gridHeight) {
g.moveTo(0, y * map.cellHeight);
g.lineTo(mapWidth, y * map.cellHeight);
}
}
override public function update():Void {