INNER CODE UNIT · JavaScript

newScene

electronicarts/pbmpm · src/main.js:469

function newScene()
{
    document.getElementById('shapesList').innerHTML = '';
    ui.clearShapes();
    ui.setRequiredAspectRatio(window.innerWidth / window.innerHeight);
    ui.windowResize();
    g_reset = true;
}

function loadScene(json)
{
    if(json.version < 1 || json.version > 2)
    {
        throw 'Unrecognized version'
    }

    const resolution = json.resolution;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…