dist/carrot.js
/**
     * Checks if all files are loaded. If yes, it starts the game. Is automatically managed by {Carrot.AssetLoader};
     *
     * @method Carrot.AssetLoader#checkFilesLoaded
     * @private
     */
Checks if all files are loaded. If yes, it starts the game.
Checks if all files are loaded . If yes it starts the game .
checkFilesLoaded()
     {
         if (this.filesToLoad === this.filesLoaded)
         {
             if (this.progressBar)
             {
                this.progressBar.parentNode.parentNode.remove();
                delete this.progressBar;
                if (this.game.transparent === false)
                {
                    this.game.background.style.backgroundColor = '#000000';
                }
                else
                {
                    this.game.background.style.background = "";
                }
                this.game.start(this.game);
            }
         }
     }
checkFilesLoaded ( ) { if ( this . filesToLoad === this . filesLoaded ) { if ( this . progressBar ) { this . progressBar . parentNode . parentNode . remove ( ) ; delete this . progressBar ; if ( this . game . transparent === false ) { this . game . background . style . backgroundColor = '#000000' ; } else { this . game . background . style . background = "" ; } this . game . start ( this . game ) ; } } }
Checks if all files are loaded.
Checks if all files are loaded .
// Remove progress bar // Reset background color set by progress bar