     'voxel-debug': {}
     'voxel-plugins-ui': {}
     'kb-bindings-ui': {}
-
-  fuel
-    pluginOpts: pluginOpts
-    require: require
+  }
 
 main()


fuel = require 'voxel-fuel'

# plugins (loaded by voxel-plugins; listed here for browserify)
require 'voxel-engine'

require 'voxel-drop'
require 'voxel-start'
require 'voxel-zen'
require 'voxel-debug'
require 'voxel-plugins-ui'
require 'kb-bindings-ui'

artpacks = require 'artpacks'
fuel = require 'voxel-fuel'

main = () ->
  console.log 'voxpopuli starting'

  if window? and window.performance && window.performance.timing
    loadingTime = Date.now() - window.performance.timing.navigationStart
    console.log "User-perceived page loading time: #{loadingTime / 1000}s"

  fuel {require:require, pluginOpts:
    'voxel-engine':
      appendDocument: true
      exposeGlobal: true  # for debugging
