n-gon
n-gon copied to clipboard
Suggestion: log errors in in-game console
Many people either can't or don't know to open dev tools to access the console to view error messages when they encounter a bug, so if you had it log to the in-game console on the bottom left it could help people report bugs.
window.addEventListener('error', error => {
simulation.makeTextLog(`<strong style='color:red;'>ERROR:</strong> ${error.message} <u>${error.filename}:${error.lineno}</u>`)
});