         @controller.cameraView.setPosition @sprite.position
         collision = @controller.collision.collidesDirections {
           x: @sprite.position.x + 2, y: @sprite.position.y + 2,
-          height: 28, width: 28 }
+          height: @height, width: @width }
         @velocity[0] = 0 if collision.x * @velocity[0] < 0
         @velocity[1] = 0 if collision.y * @velocity[1] < 0
         if collision.teleport?

      pixelHeight = @controller.tilemap.height * @controller.tilemap.tileHeight
      @sprite.position.x = x * 32
      @sprite.position.y = y * 32
      @sprite.position.x -= (pixelWidth / 2) - 16
      @sprite.position.y -= (pixelHeight / 2) - 16
      @sprite.position.y *= -1

    update: =>

      @controller.keyState.on "keydown", (keyCode) =>
        collision = @controller.collision.collidesDirections {
          x: @sprite.position.x + 2, y: @sprite.position.y + 2,
          height: @height, width: @width }
        switch keyCode
          when 38
            if collision.y isnt -1
