It's often more efficient to store a bunch of vertices in one buffer and then use an index list to take only the ones you need, rather than having a bunch of separate buffers which was always the case before. Basically, for a bit of extra complexity in the API you get a lot more power to optimize where needed. It's a tradeoff.Also by swapping in a new vertex list you can redefine a shape after creation, which I believe is something you asked for before...?
const objects = require("objects");//...func game() // console.initialize(); SetDefaultMapScript(SCRIPT_ON_ENTER_MAP,"objects.generateField(); "); // ReferenceError: identifier 'objects' undefined}game();
let Game = require(mainScriptFilename).default:if (Game) { (new Game()).start(); }