1.0.1 • Published 10 months ago

@verseengine/verse-core v1.0.1

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
10 months ago

verse-core · npm version

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();
}

API Reference

Link

1.0.1

10 months ago

1.0.0

11 months ago