forked from decentraland/sdk7-goerli-plaza
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
1,611 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Show Management | ||
|
||
<img src="screenshot/screenshot.png" width="500"> | ||
|
||
## Description | ||
|
||
This scene demonstrates how to synchronize actions in the scene to specific moments in a video by implementing the [Show Management Library](https://github.com/Vegas-City/show-manager#readme). | ||
|
||
This scene shows you: | ||
|
||
- How to schedule playing a video streamed on-demand to play at a certain time | ||
- How to sync actions in the scene to moments in the video | ||
|
||
## Try it out | ||
|
||
**Update SDK version** | ||
|
||
To update the SDK version of the scene, run the following command: | ||
|
||
```bash | ||
npm i @dcl/sdk@latest | ||
``` | ||
|
||
**Previewing the scene** | ||
|
||
Open this folder on the command line, then run: | ||
|
||
``` | ||
npm run start | ||
``` | ||
|
||
Any dependencies are installed and then the CLI opens the scene in a new browser tab. | ||
|
||
## Copyright info | ||
|
||
This scene is protected with a standard Apache 2 licence. See the terms and conditions in the [LICENSE](/LICENSE) file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,253 @@ | ||
{ | ||
"version": 1, | ||
"components": [ | ||
{ | ||
"name": "core::Transform", | ||
"jsonSchema": { | ||
"type": "object", | ||
"properties": { | ||
"position": { | ||
"type": "object", | ||
"properties": { | ||
"x": { | ||
"type": "number" | ||
}, | ||
"y": { | ||
"type": "number" | ||
}, | ||
"z": { | ||
"type": "number" | ||
} | ||
} | ||
}, | ||
"scale": { | ||
"type": "object", | ||
"properties": { | ||
"x": { | ||
"type": "number" | ||
}, | ||
"y": { | ||
"type": "number" | ||
}, | ||
"z": { | ||
"type": "number" | ||
} | ||
} | ||
}, | ||
"rotation": { | ||
"type": "object", | ||
"properties": { | ||
"x": { | ||
"type": "number" | ||
}, | ||
"y": { | ||
"type": "number" | ||
}, | ||
"z": { | ||
"type": "number" | ||
}, | ||
"w": { | ||
"type": "number" | ||
} | ||
} | ||
}, | ||
"parent": { | ||
"type": "integer" | ||
} | ||
}, | ||
"serializationType": "transform" | ||
}, | ||
"data": { | ||
"512": { | ||
"json": { | ||
"position": { | ||
"x": 8, | ||
"y": 1, | ||
"z": 8 | ||
}, | ||
"scale": { | ||
"x": 1, | ||
"y": 1, | ||
"z": 1 | ||
}, | ||
"rotation": { | ||
"x": 0, | ||
"y": 0, | ||
"z": 0, | ||
"w": 1 | ||
}, | ||
"parent": 0 | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "core::MeshRenderer", | ||
"jsonSchema": { | ||
"type": "object", | ||
"properties": {}, | ||
"serializationType": "protocol-buffer", | ||
"protocolBuffer": "PBMeshRenderer" | ||
}, | ||
"data": { | ||
"512": { | ||
"json": { | ||
"mesh": { | ||
"$case": "box", | ||
"box": { | ||
"uvs": [] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "core-schema::Name", | ||
"jsonSchema": { | ||
"type": "object", | ||
"properties": { | ||
"value": { | ||
"type": "string", | ||
"serializationType": "utf8-string" | ||
} | ||
}, | ||
"serializationType": "map" | ||
}, | ||
"data": { | ||
"512": { | ||
"json": { | ||
"value": "Magic Cube" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "inspector::Scene", | ||
"jsonSchema": { | ||
"type": "object", | ||
"properties": { | ||
"layout": { | ||
"type": "object", | ||
"properties": { | ||
"base": { | ||
"type": "object", | ||
"properties": { | ||
"x": { | ||
"type": "integer", | ||
"serializationType": "int32" | ||
}, | ||
"y": { | ||
"type": "integer", | ||
"serializationType": "int32" | ||
} | ||
}, | ||
"serializationType": "map" | ||
}, | ||
"parcels": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"x": { | ||
"type": "integer", | ||
"serializationType": "int32" | ||
}, | ||
"y": { | ||
"type": "integer", | ||
"serializationType": "int32" | ||
} | ||
}, | ||
"serializationType": "map" | ||
}, | ||
"serializationType": "array" | ||
} | ||
}, | ||
"serializationType": "map" | ||
} | ||
}, | ||
"serializationType": "map" | ||
}, | ||
"data": { | ||
"0": { | ||
"json": { | ||
"layout": { | ||
"base": { | ||
"x": 0, | ||
"y": 0 | ||
}, | ||
"parcels": [ | ||
{ | ||
"x": 0, | ||
"y": 0 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "inspector::Nodes", | ||
"jsonSchema": { | ||
"type": "object", | ||
"properties": { | ||
"value": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"entity": { | ||
"type": "integer", | ||
"serializationType": "entity" | ||
}, | ||
"children": { | ||
"type": "array", | ||
"items": { | ||
"type": "integer", | ||
"serializationType": "entity" | ||
}, | ||
"serializationType": "array" | ||
} | ||
}, | ||
"serializationType": "map" | ||
}, | ||
"serializationType": "array" | ||
} | ||
}, | ||
"serializationType": "map" | ||
}, | ||
"data": { | ||
"0": { | ||
"json": { | ||
"value": [ | ||
{ | ||
"entity": 0, | ||
"children": [ | ||
512 | ||
] | ||
}, | ||
{ | ||
"entity": 512, | ||
"children": [] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "cube-id", | ||
"jsonSchema": { | ||
"type": "object", | ||
"properties": {}, | ||
"serializationType": "map" | ||
}, | ||
"data": { | ||
"512": { | ||
"json": {} | ||
} | ||
} | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"name": "show-management", | ||
"description": "SDK7 Template scene", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"@dcl-sdk/utils": "next", | ||
"dcl-ui-toolkit": "next", | ||
"show-manager": "latest" | ||
}, | ||
"devDependencies": { | ||
"@dcl/js-runtime": "next", | ||
"@dcl/sdk": "next", | ||
"@types/node": "next" | ||
}, | ||
"engines": { | ||
"node": ">=16.0.0", | ||
"npm": ">=6.0.0" | ||
}, | ||
"prettier": { | ||
"semi": false, | ||
"singleQuote": true, | ||
"printWidth": 120, | ||
"trailingComma": "none" | ||
}, | ||
"scripts": { | ||
"build": "sdk-commands build", | ||
"deploy": "sdk-commands deploy", | ||
"start": "sdk-commands start", | ||
"upgrade-sdk": "npm install --save-dev @dcl/sdk@latest", | ||
"upgrade-sdk:next": "npm install --save-dev @dcl/sdk@next" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"ecs7": true, | ||
"runtimeVersion": "7", | ||
"display": { | ||
"title": "Show-Manager-Example", | ||
"description": "Stage Tutorial", | ||
"navmapThumbnail": "images/scene-thumbnail.jpg", | ||
"favicon": "favicon_asset" | ||
}, | ||
"owner": "Vegas City", | ||
"contact": { | ||
"name": "Vegas City", | ||
"email": "[email protected]" | ||
}, | ||
"main": "bin/index.js", | ||
"tags": [], | ||
"scene": { | ||
"parcels": [ | ||
"79,1" | ||
], | ||
"base": "79,1" | ||
}, | ||
"spawnPoints": [ | ||
{ | ||
"name": "spawn1", | ||
"default": true, | ||
"position": { | ||
"x": [ | ||
6, | ||
10 | ||
], | ||
"y": [ | ||
1, | ||
1 | ||
], | ||
"z": [ | ||
6, | ||
10 | ||
] | ||
}, | ||
"cameraTarget": { | ||
"x": 0, | ||
"y": 0, | ||
"z": 0 | ||
} | ||
} | ||
], | ||
"requiredPermissions": [ | ||
"ALLOW_TO_TRIGGER_AVATAR_EMOTE", | ||
"ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE", | ||
"ALLOW_MEDIA_HOSTNAMES" | ||
], | ||
"allowedMediaHostnames": [ | ||
"player.vimeo.com" | ||
], | ||
"featureToggles": {}, | ||
"name": "Show-Manager-Example" | ||
} |
Oops, something went wrong.