src/engine.js
/**
   * Adds one of each inventory item, and a portal, to the scene
   * @return {void}
   */
Adds one of each inventory item, and a portal, to the scene
@return {void}
Adds one of each inventory item and a portal to the scene @return { void }
demoEntities() {
    var x = -5, y = 0, z = 4;
    var i, item;
    for(i in InventoryItems) {
      item = new InventoryItems[i](this);
      if(item) {
        item.translate(vec3.fromValues(x, y, z));
        x++;
        if(x > 5) {
          x = -5;
          z--;
        }
      }
    }
    var portal = new PortalEntity(this);
    portal.translate(vec3.fromValues(x, y, z));
  }
demoEntities ( ) { var x = - 5 , y = 0 , z = 4 ; var i , item ; for ( i in InventoryItems ) { item = new InventoryItems [ i ] ( this ) ; if ( item ) { item . translate ( vec3 . fromValues ( x , y , z ) ) ; x ++ ; if ( x > 5 ) { x = - 5 ; z -- ; } } } var portal = new PortalEntity ( this ) ; portal . translate ( vec3 . fromValues ( x , y , z ) ) ; }
Adds one of each inventory item, and a portal, to the scene
 @return {void}
Adds one of each inventory item and a portal to the scene @return { void }