function run(callback) {
            runCallback = callback;
            // check document state
            //if (window.document.readyState === 'complete') {
            // run game inmediately
            //callFirstFrame(callback);
            //} else {
            // else wait for document to load
            //window.addEventListener('load', callFirstFrame.bind(this, callback), false);
            //}
        }
/**
         * Sets the run callback function to be executed once the game is ready
         * @param {function} callback - Function to be called when the game is ready to run
         */
Sets the run callback function to be executed once the game is ready
@param {function} callback - Function to be called when the game is ready to run
Sets the run callback function to be executed once the game is ready @param { function } callback - Function to be called when the game is ready to run
function run(callback) {
            runCallback = callback;
        }
function run ( callback ) { runCallback = callback ; }
Sets the run callback function to be executed once the game is ready
 @param {function} callback - Function to be called when the game is ready to run
Sets the run callback function to be executed once the game is ready @param { function } callback - Function to be called when the game is ready to run
// check document state //if (window.document.readyState === 'complete') { // run game inmediately //callFirstFrame(callback); //} else { // else wait for document to load //window.addEventListener('load', callFirstFrame.bind(this, callback), false); //}