 class Building
-  constructor:(@context) ->
-    @width = 90 + Math.floor(Math.random()*40)
+  constructor:(@context, @canvas_height) ->
+    @width = 70 + Math.floor(Math.random()*40)
     @base_height = 100
     @randomize_color()
 

  constructor: ->
    @empty = true
    @canvas = document.getElementById "gorillas"
    @context = @canvas.getContext "2d"
    @color = '#00FFFF'
    @padding = 1

    image

  draw:(x, y) ->
    @x ||= x-@width/2
    @y ||= y-@height
    @context.drawImage(@image(), @x, @y, @width, @height)

  redraw:() ->
    @draw(@x, @y)

  grab_banana:(force, angle) ->
    @banana = new Banana(@context, @x+@width, @y-@height, force, angle)

  throw_banana: ->
    @banana.draw_frame()
