     console.log "Click at #{x}, #{y}"
 
   GameState.start
+    camera: [0, 0]
     world: [
       [0, 0, 0, 0, 0, 0],
       [0, 1, 2, 1, 0, 0],

  console.log "Hello, world!"

  environment = GameState.state.map((x) -> x.world)

  cameraInfo = Bacon.combineTemplate
    camWidth: K('camera_width')

    sources = (for row in [0..camHeight-1]
      for col in [0..camWidth-1]
        do (row, col) ->
          intermediate = Bacon.combineTemplate
            grid: gridDisplay
            target: cameraTopLeft
          intermediate.map (x) ->
            {grid, target} = x
            [tx, ty] = target
            grid[row + ty]?[col + tx] ? ['unknown'])
    GridView '#tiles', sources

  clicks.onValue (pos) ->
