     Crafty.unbind('ViewportScroll')
     b.clean() for b in @blocks
 
-  # Generate more level from tile 'start'
-  _update: (start) ->
+  _update: ->
     @generationDefinition ?= 0
 
-    startX = @blocks[start]?.x || 0
+    #startX = @blocks[start]?.x || 0
+    startX = - Crafty.viewport._x
     endX = startX + @bufferLength
 
     counter = 0

      @data.enemiesSpawned += 1

    @_placePlayerShips settings
    @_update 0

    for block in @blocks when block.x < 640
      block.enter()

    Crafty.bind 'LeaveBlock', (index) =>
      @_update index
      if index > 0
        @blocks[index - 1].leave()
        @currentBlockIndex = index

    @blocks = []
    @levelDefinition = []
    @buildedBlocks = []
    @bufferLength = 640 * 3
    @generationPosition = x: 0, y: 40
    @visibleHeight = 480 - @generationPosition.y

