INNER CODE UNIT · JavaScript

time

loicbourgois/gravitle · front/alpha/index.js:143

    time = now - delta;
};

const start = () => {
    time = Date.now();
    interval = setInterval(tickMultiple, 1);
    requestAnimationFrame(render_loop);
    canvas.focus();
};

const keyup = (e) => {
    if (bindings && bindings[e.key]) {
        universe.deactivate_thrust_for_links(bindings[e.key].link_indexes);
        document.getElementById('popup').classList.add('faded');
    } else {
        // Do nothing
    }
};

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…