 
   set_color:(color) ->
     @color = color
+
+  clear:() ->
+    @canvas.width = @canvas.width
 
   draw_gorillas: ->
     building = @buildings[Math.floor(Math.random()*3)]

  animate_banana:(player) ->
    setTimeout (=>
      this['player_' + player].throw_banana()
      @draw_buildings()
      @animate_banana(player)
      ),
      150

jQuery = $
$(document).ready ->
  painter = new Painter
  painter.draw_scene()

  $('#player_1_angle').bind "keydown", (event) ->
    if event.keyCode == 13
