 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()
 

    image

  draw:(x, y) ->
    @x ||= x+30
    @y ||= y-40
    @context.drawImage(@image(), @x, @y, 40, 40)

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

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

  throw_banana: ->
    @banana.draw_frame()


class Gorilla
  constructor:(@context) ->
    @width = 25
    @height = 25

  image: ->
    image = new Image()
