src/engine.js
/**
   * Adds one of each drawable to the scene
   * @return {void}
   */
Adds one of each drawable to the scene
@return {void}
Adds one of each drawable to the scene @return { void }
demo() {
    var x = -5, y = 0, z = 4;
    var i, item;
    for(i in Inventory) {
      item = new Inventory[i]();
      if(item) {
        mat4.translate(item.world, item.world, vec3.fromValues(x, y, z));
        x++;
        if(x > 5) {
          x = -5;
          z--;
        }
        this.objectRenderer.addDrawable(item);
      }
    }
    for(i in Resource) {
      item = new Resource[i]();
      if(item) {
        mat4.translate(item.world, item.world, vec3.fromValues(x, y, z));
        x++;
        if(x > 5) {
          x = -5;
          z--;
        }
        this.objectRenderer.addDrawable(item);
      }
    }
    for(i in World) {
      item = new World[i]();
      if(item) {
        mat4.translate(item.world, item.world, vec3.fromValues(x, y, z));
        x++;
        if(x > 5) {
          x = -5;
          z--;
        }
        this.objectRenderer.addDrawable(item);
      }
    }
  }
demo ( ) { var x = - 5 , y = 0 , z = 4 ; var i , item ; for ( i in Inventory ) { item = new Inventory [ i ] ( ) ; if ( item ) { mat4 . translate ( item . world , item . world , vec3 . fromValues ( x , y , z ) ) ; x ++ ; if ( x > 5 ) { x = - 5 ; z -- ; } this . objectRenderer . addDrawable ( item ) ; } } for ( i in Resource ) { item = new Resource [ i ] ( ) ; if ( item ) { mat4 . translate ( item . world , item . world , vec3 . fromValues ( x , y , z ) ) ; x ++ ; if ( x > 5 ) { x = - 5 ; z -- ; } this . objectRenderer . addDrawable ( item ) ; } } for ( i in World ) { item = new World [ i ] ( ) ; if ( item ) { mat4 . translate ( item . world , item . world , vec3 . fromValues ( x , y , z ) ) ; x ++ ; if ( x > 5 ) { x = - 5 ; z -- ; } this . objectRenderer . addDrawable ( item ) ; } } }
Adds one of each drawable to the scene
 @return {void}
Adds one of each drawable to the scene @return { void }