Spacetime-Meta / spacetime-sdk

The spacetime-sdk is a turnkey virtual environment package for building in the Spacetime Metaverse
https://www.spacetimemeta.io/metaverse/spawn-planet
MIT License
11 stars 2 forks source link

[Feature]: Allow setup with config file #180

Closed Liquid-Blocks closed 2 years ago

Liquid-Blocks commented 2 years ago

Overview

Instead of reloading the whole virtual environment every time we change location, we have the virtual environment read a config file and present the world accordingly.

Specifications

The constructor must be able to take:

  1. a URL to a .json config file.
  2. a js Object containing a config.

A basic config file should ideally look something like:

{
    "version": 1,
    "terrain": {
        "url": "./assets/terrains/baseTemplate.glb"
    }
}

Anything else?

No response