implemented zooming

This commit is contained in:
Gavin McDonald
2016-02-24 15:32:03 -05:00
parent 42e0d7c8d2
commit 4e06b756d8
7 changed files with 163 additions and 39 deletions

View File

@@ -46,7 +46,8 @@ class Demo {
}
draw(context) {
this.map.forEach(cell => this[cell.tile][cell.style](context, cell));
let scale = 1;
this.map.forEach(cell => this[cell.tile][cell.style](context, scale, cell.x, cell.y, cell));
}
}