@verseengine/verse-core
v1.0.1
Published
Web-based Metaverse Engine on P2P overlay network.
Downloads
5
Readme
verse-core ·
Web-based Metaverse Engine on P2P overlay network.
Usage
import verseInit, * as VerseCore from "verse-core";
...
async function start() {
// Initialize by specifying the URL of the WebAssembly file.
await verseInit("./assets/verse_core_bg.wasm");
const verse = VerseCore.Verse.new(
"https://entrance.verseengine.cloud",
player,
new OtherPersonFactory(scene, adapter),
{
// WebRTC settings to connect to the overlay network.
iceServers: [
{ urls: "stun:stun.l.google.com:19302" },
{ urls: "stun:stun1.l.google.com:19302" },
],
} as RTCConfiguration,
);
await verse.start();
}