     _generateTiles: ->
       mapSize = @group.game.world.getBounds()
 
+    _createTileGeneratorState: ->
+      mapSize = @group.game.world.getBounds()
       vars =
         facing: 'right' # left, right
         prevFacing: null


  class Ledge

    constructor: (@index, @rowIndex, @size, @spacing, @start, @end, @facing) ->


  Platforms

        rowType: null # empty, ledge, solid

        tileTypeInverse: off

    _generateTiles: ->
      vars = @_createTileGeneratorState()

      @tiles = []

