 
 createGame = require 'voxel-engine'
 createPlugins = require 'voxel-plugins'
+createDebugUI = require 'voxel-debug'
 createPluginsUI = require 'voxel-plugins-ui'
 createBindingsUI = require 'kb-bindings-ui'
 

  #playerInventory.give new ItemPile('workbench', 1)
  #toolbar = createToolbar {el: '#tools'}
  #inventoryToolbar = plugins.load 'inventory-toolbar', {toolbar:toolbar, inventory:playerInventory, inventorySize:10, registry:registry}
  inventoryHotbar = plugins.load 'inventory-hotbar', {inventory:playerInventory, inventorySize:10} # TODO: change to preload, but timeToMine below references it

  plugins.preload 'inventory-dialog', {playerInventory:playerInventory}


      inventoryHotbar.refresh()
      console.log 'survival mode'

  # the GUI window (built-in toggle with 'H')
  # TODO: should these load as plugins? or not? who 'owns' the datgui object?
  gui = new datgui.GUI()
  debug = createDebugUI game, {gui:gui}
  debug.axis [0, 0, 0], 10
  pluginsUI = createPluginsUI game, {gui: gui}
  bindingsUI = createBindingsUI game, {gui: gui, kb: game.buttons}

