diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-08-27 18:17:14 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-08-27 18:32:32 -0400 |
| commit | ee110d4725943bbc2b783323ec5087324531ca33 (patch) | |
| tree | 5217c8116a2ac916f6143263337c9da46b8c6505 /public/assets/javascripts/rectangles/engine/map/_map.js | |
| parent | ebb9226fd5d37e8033e87e41b8ac0355d68f954c (diff) | |
get rooms api working with shapes
Diffstat (limited to 'public/assets/javascripts/rectangles/engine/map/_map.js')
| -rw-r--r-- | public/assets/javascripts/rectangles/engine/map/_map.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/public/assets/javascripts/rectangles/engine/map/_map.js b/public/assets/javascripts/rectangles/engine/map/_map.js index e27346d..6492db6 100644 --- a/public/assets/javascripts/rectangles/engine/map/_map.js +++ b/public/assets/javascripts/rectangles/engine/map/_map.js @@ -50,6 +50,7 @@ var Map = function(opt){ switch (opt.type) { case "ortho": base.draw = new Map.Draw (base, { ortho: true }) + base.draw.grid_size = MAP_GRID_SIZE base.ui = new Map.UI.Ortho (base) base.sides = base.sides_for_center $(window).resize(base.resize) @@ -57,6 +58,7 @@ var Map = function(opt){ case "editor": base.draw = new Map.Draw (base) + base.draw.grid_size = MAP_GRID_SIZE base.ui = new Map.UI.Editor (base) base.sides = base.sides_for_center $(window).resize(base.resize) @@ -64,6 +66,7 @@ var Map = function(opt){ case "minimap": base.draw = new Map.Draw (base, { center: scene.camera, minimap: true }) + base.draw.grid_size = MAP_GRID_SIZE * 10 base.ui = new Map.UI.Minimap (base) base.sides = base.sides_for_camera break |
