(WIP) no public releases available yet
- đŸ”¥minigame - A fully playable 3D game. Can you reach the top floor where a surprising prize is awaiting you ;) (source)
- genesis - A minimal implementation. (source)
- esm module loading - A pedantic example of using custom ES modules. (source)
- amd module loading - A pedantic example of using custom AMD modules. (source)
Many of our prototype/experimental websites (related to games, multimedia, dataviz, education) can be found in đŸ”¥ https://w3reality.com/
Here is a minimal VR website implementation using the SDK.App
class:
const SDK = window.requirejs('w3reality-sdk');
const THREE = window.THREE;
class MyApp extends SDK.App {
// override
static async fetchAssets() {
return null;
}
// override
static createWorld(assets=null) {
return SDK.App.createWorld();
}
// override
constructor(data, name='myapp') {
super(data, name);
const scene = new THREE.Scene();
// ... (construct and add THREE objects to scene)
this.setScene(scene);
}
// override
update(t, dt) {
super.update(t, dt);
// ... (implement the dynamic logic)
}
// override
free() {
super.free();
// ... (free custom resources if any)
}
}
export default MyApp;
(WIP)