lib/game_manager.rb
#
# If there's a list of maps, cmap_nameheck the next one is there.
#
If there's a list of maps, cmap_nameheck the next one is there.
If there ' s a list of maps cmap_nameheck the next one is there .
def map_defined?
    level = @config['levels'][@level_index]
    if level
      map_name = level['map']
      path = File.join(
        File.dirname(__FILE__),
        '..',
        'maps',
        "#{map_name}.txt"
      )
      File.exists?(path)
    else
      false
    end
  end
def map_defined? level = @config [ 'levels' ] [ @level_index ] if level map_name = level [ 'map' ] path = File . join ( File . dirname ( __FILE__ ) , '..' , 'maps' , "#{map_name}.txt" ) File . exists? ( path ) else false end end
If there's a list of maps, cmap_nameheck the next one is there.
If there ' s a list of maps cmap_nameheck the next one is there .