text("2d")
    canvas = doc["canvas"].getContext("2d")
    overlay = doc["overlay"]
    doc["sky"].style.backgroundPosition="{}px 0".format(
        floor(-playerDir / (2 * pi) * 2400))
    drawCanvas()
    initUnderMap()
    timer.set_interval(update, 50)

init()


</script>
  </head>
<body>
<div id="benjoffe">

  <div id="content">

      <h1>Canvascape - "3D Walker"</h1>

    <div id="app">
      <canvas id="underMap" width="80" height="80"></canvas>
      <canvas id="map" width="80" height="80"></canvas