Bloxels Web Builder: Build and Play Bloxels Games through your Browser


Bloxels Web Builder: Build and Play Bloxels Games through your Browser { meterFill.style.width = 100 * progress + “%”; if(progress >= 1.0) { meterContainer.style.display = “none”; } }) .then( (instance) => { unityInstance = instance; }); var autoSaveInterval = null; window.EnableAutosave = function(enable) { if(!enable && autoSaveInterval) { console.log(‘Stop autosaving’); clearInterval(autoSaveInterval); autoSaveInterval = null; } else if(enable && !autoSaveInterval) { console.log(‘Begin autosaving’); autoSaveInterval = setInterval( () => { unityInstance.SendMessage(“BrowserAutosaveListener”, “OnBrowserAutosave”); }, 120000); } }; ]]>

Source