 
     divRem = (numer,denom) -> [Math.floor(numer/denom), numer % denom]
 
-    map = areaA
+    map = areaB
 
     mapRowCount = map.length * 15
     mapColCount = map[0].length * 16

Systems = require './systems'

C = require './entity/components'

Systems.register 'viewport-track-samus', class ViewportTrackSamus
  constructor: ({@container,@tileGrid}) ->

  [ 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00 ]
]

roomTypes[3] = [
  [ 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,0x00,0x00,0x00, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,0x00,0x00,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
]

roomTypes[4] = [
  [ 0x00,null,null,null, null,null,null,null, null,0x00,0x00,0x00, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, 0x00,0x00,0x00,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,0x00,0x00,0x00, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, 0x00,0x00,0x00,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,0x00,0x00,null, null,null,null,0x00 ]
]

roomTypes[5] = [
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, 0x00,0x00,0x00,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,0x00, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,0x00,0x00,0x00, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, 0x00,null,null,null, null,null,null,null, 0x00,0x00,0x00,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,0x00, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,0x00,0x00, 0x00,0x00,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,null,null,null, null,null,null,null, null,null,null,null, null,null,null,0x00 ]
  [ 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00 ]
]

areaA = [
  [ 0, 1, 2]
]

areaB = [
  [3]
  [4]
  [5]
]
