-# storyturtle.js
-# License MIT
-# http://simplectic.com/story_turtle
-$(->
-  game = $("#game").hide()
-  editor = $("<textarea>", { rows: 15, cols: 30 }).
-    hide().val(game.text()).appendTo(game.text(""))
-  board = $("<div>").width(300).height(300).appendTo(game)
-  speaker = $("<div>").width(350).appendTo(game)
-  play = $("<a>", href:'#').text("Play!").css(float: "left")
-  edit = $("<a>", href: '#').text("Edit").css(float: "right")
-  controls = $("<div>").width(300).append(play, edit).appendTo(game)
+###
+storyturtle.js
+License MIT
+http://simplectic.com/story_turtle
+###
+$ ->
+  game = $("#game")
+    .hide()
+
+  editor = $("<textarea>",
+    rows: 15
+    cols: 30).
+    hide().
+    val(game.text()).
+    appendTo(game.text(""))
+
+  board = $("<div>")
+    .width(300)
+    .height(300)
+    .appendTo(game)
+
+  speaker = $("<div>")
+    .width(350)
+    .appendTo(game)
+
+  play = $("<a>", href:'#').
+    text("Play!")
+    .css(float: "left")
+
+  edit = $("<a>", href: '#')
+    .text("Edit")
+    .css(float: "right")
+
+  controls = $("<div>")
+    .width(300)
+    .append(play, edit)
+    .appendTo(game)
 
   features = {}
   moveQueue = []
-  offset = {top: 0, left:0}
+  offset =
+    left:0
+    top:0
 
   create = (cb, name, type, x, y)->
     feature = features[name]

    feature = $("<img>", src: "images/#{type}.png")
    feature.css
      position: 'absolute'
      left: x
      top: y
      width: 30
      height: 30
    feature.appendTo board
    features[name] = feature
    cb()

    false

  game.show()
