/**
* @file Sets up an Express backend server for examples, serving static files,
* replacing HTML strings, and enabling a game socket service.
* The behavior adapts based on the environment mode (NODE_ENV) inject in process.env with cross-env package.
@@ -108,27 +108,32 @@
new Object3D({
name: 'Note game',
static: true,
+ matrix: [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1844753.5, 5174961, 0, 1],
components: {
GameScript: {
- idScripts: [NoteManager.ID_SCRIPT, NativeCommandManager.ID_SCRIPT],
+ scriptParams: [
+ { id: NoteManager.ID_SCRIPT },
+ { id: NativeCommandManager.ID_SCRIPT },
+ ],
},
ExternalScript: {
- idScripts: [
- constant.ID_SCRIPT.NOTE_UI,
- constant.ID_SCRIPT.CAMERA_MANAGER,
+ scriptParams: [
+ { id: constant.ID_SCRIPT.NOTE_UI },
+ { id: constant.ID_SCRIPT.CAMERA_MANAGER },
],
},
},
}),
new Object3D({
uuid: 'dom_element_3d_cube_game_uuid',
- name: 'Avatar jitsi game',
+ name: 'DomElement 3D cube game',
static: true,
+ matrix: [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1844753.5, 5174961, 0, 1],
components: {
GameScript: {
- idScripts: [
- DomElement3DCubeManager.ID_SCRIPT,
- NativeCommandManager.ID_SCRIPT,
+ scriptParams: [
+ { id: DomElement3DCubeManager.ID_SCRIPT },
+ { id: NativeCommandManager.ID_SCRIPT },
],
variables: {
idRenderData: 'cube',
@@ -142,7 +147,7 @@
},
},
ExternalScript: {
- idScripts: [],
+ scriptParams: [],
},
},
}),
@@ -157,4 +162,4 @@
}
reload(app, { port: RELOAD_PORT });
});
-