 require 'voxel-use'
 require 'voxel-reach'
 require 'voxel-land'
+
+require 'voxel-debug'
+require 'voxel-plugins-ui'
+require 'kb-bindings-ui'
 
 module.exports = () ->
   console.log 'voxpopuli starting'

  console.log 'initializing plugins'
  plugins = createPlugins game, {require: require}

  registry = plugins.load 'registry', {}
  registry.registerBlock 'grass', {texture: ['grass_top', 'dirt', 'grass_side'], hardness:5}
  registry.registerBlock 'dirt', {texture: 'dirt', hardness:4}
  registry.registerBlock 'stone', {texture: 'stone', hardness:90}

    distance: REACH_DISTANCE
    adjacentActive: () -> false   # don't hold <Ctrl> for block placement (right-click instead, 'reach' plugin)
  }

  # the GUI window (built-in toggle with 'H')
  gui = new datgui.GUI()
  plugins.preload 'debug', {gui:gui}
  plugins.preload 'plugins-ui', {gui:gui}
  plugins.preload '!kb-bindings-ui', {gui:gui, kb:game.buttons}


  plugins.loadOrderly()
  ## plugins are loaded from here on out ##
