yoshiki — discord […] Microverse uses Three.js through Worldcore so the implementation of the microverse "Card" relies on a bit more on Worldcore's kernel Mixins such as Spatial and Smoothed. The translation and rotation of a Card uses the same representation of Worldcore objects so that they can be simply rendered. On the other hand, event handling and all other parts of the Microverse was written for Microverse. So yes, Worldcore manages the structure part of the display scene and stuff, but the rest is done in code in Microverse.
yoshiki — discord There was an idea that we should have a simpler way to set it up, and perhaps just by running npm. So we now have it: If you run
npm init croquet-microverse
in an empty directory, it should create a simple installation (~5MB) with one avatar file and simple test world.
You can copy bits and pieces from the full installation and make your worlds in that installation.
Deploying that to a server takes a bit of work, if you want to further slim down the number and sizes of the files (for example, the setup process creates whole bunch of directories in the `node_modules` directory, but only one thing that is needed is `node_modules/@croquet/microverse-library/lib`). See `script defer` in the following Code snippet.
<head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> <title>Microverse</title> <link id="microverse-css" rel="stylesheet" href="./assets/css/microverse.css" /> <link href="./assets/fonts/css/all.min.css" rel="stylesheet"> <script defer src="node_modules/@croquet/microverse-library/lib/index.js"></script></head> […]
But if you prefer this way of working, please give it a try. **Note**: However, that you still have to create an `apiKey.js`... We probably should have an interactive dialog to enter your key and appId during the npm init process.
We see missing assets errors. We should be able to fix this simply by copying the missing assets from our previous Microverse directory to here.
limbofeather — discord Do you have a few worlds we can check out and integrate with?
yoshiki — discord we have https://croquet.io/microverse , https://croquet.io/microverse?world=factory , https://croquet.io/microverse?world=campus , https://croquet.io/microverse?world=refinery , https://croquet.io/microverse?world=financial . All of those, except the financial world, have some interactive items (and all of those worlds let you add more stuff easily)
dataLocation: "3coWYogq7xyGU7mrWEmO6V8EqGhC_seApkg4lByI_xy8CxcXExBZTEwFCg8GEE0WEE0AEQwSFgYXTQoMTBZMJAc1ARoPKhAiCDIAITsHUCQbAhUaFDYoNDo6UUwKDE0AEQwSFgYXTQ4KABEMFQYREAZMUAoiGVMZElcsGg0qASksG1AqMlsHWy4zIRUALxQJTgAiByskMgw8ATsVW0wHAhcCTDsiPAoiNSIhEBcMLQ8lKwg2BjAvCFUpVyw5MioCUDwEDg0WUAQQIAUFCRA", license: "CC-BY-4.0", attribution: "'Dalek' (https://skfb.ly/6RuKV) by a.shevchuk is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).",