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


  draw_buildings:()->
    position = 0
    for [1...10]
      building = @draw_building(position)
      position = building.end_position() + @padding

  draw_building:(x) ->
    building = new Building(@context)

    y = Math.floor(Math.random()*300)
    building.draw(x, y)

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