dist/melonjs.js
function goTo(level) {
         this.gotolevel = level || this.nextlevel; // load a level
         //console.log("going to : ", to);

         if (this.fade && this.duration) {
           if (!this.fading) {
             this.fading = true;
             me.game.viewport.fadeIn(this.fade, this.duration, this.onFadeComplete.bind(this));
           }
         } else {
           me.levelDirector.loadLevel(this.gotolevel, this.getlevelSettings());
         }
       }
function goTo(level) {
         this.gotolevel = level || this.nextlevel; // load a level
         //console.log("going to : ", to);

         if (this.fade && this.duration) {
           if (!this.fading) {
             this.fading = true;
             me.game.viewport.fadeIn(this.fade, this.duration, this.onFadeComplete.bind(this));
           }
         } else {
           me.levelDirector.loadLevel(this.gotolevel, this.getlevelSettings());
         }
       }
function goTo ( level ) { this . gotolevel = level || this . nextlevel ; // load a level //console.log("going to : ", to); if ( this . fade && this . duration ) { if ( ! this . fading ) { this . fading = true ; me . game . viewport . fadeIn ( this . fade , this . duration , this . onFadeComplete . bind ( this ) ) ; } } else { me . levelDirector . loadLevel ( this . gotolevel , this . getlevelSettings ( ) ) ; } }
go to the specified level
@name goTo
@memberOf me.LevelEntity
@function
@param {String} [level=this.nextlevel] name of the level to load
@protected
go to the specified level