Skip to content

Commit bcd333d

Browse files
authored
chore: trigger areas test scene (#34)
* updated package.json to use experimental SDK * implemented basic trigger area test scene
1 parent ed9a388 commit bcd333d

12 files changed

Lines changed: 294 additions & 1 deletion

File tree

dcl-workspace.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
{
3434
"path": "scenes/76,-10-UiCanvasInformation"
3535
},
36+
{
37+
"path": "scenes/75,-9-trigger-areas"
38+
},
3639
{
3740
"path": "scenes/74,-8-gltfnodemodifier"
3841
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"license": "ISC",
2020
"dependencies": {
2121
"@dcl/js-runtime": "^7.5.8-10926653489.commit-aec9f09",
22-
"@dcl/sdk": "^7.5.8-10926653489.commit-aec9f09",
22+
"@dcl/sdk": "experimental",
2323
"glob": "^10.3.10",
2424
"syncpack": "^12.3.0"
2525
},
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.*
2+
package.json
3+
package-lock.json
4+
yarn-lock.json
5+
build.json
6+
export
7+
tsconfig.json
8+
tslint.json
9+
node_modules
10+
*.ts
11+
*.tsx
12+
Dockerfile
13+
dist
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package-lock.json
2+
*.js
3+
node_modules
4+
bin/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This test scene shows how to use the new TriggerArea and TriggerAreaResult components with the SDK.
6.24 KB
Loading
83.6 KB
Loading
5.47 MB
Binary file not shown.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "trigger-areas",
3+
"description": "ECS7 ",
4+
"version": "1.0.0",
5+
"dependencies": {
6+
"@dcl/sdk": "https://sdk-team-cdn.decentraland.org/@dcl/js-sdk-toolchain/branch/feat/trigger-area-components/dcl-sdk-7.10.3-17932490008.commit-8b45213.tgz",
7+
"cannon": "latest",
8+
"@types/cannon": "latest"
9+
},
10+
"scripts": {
11+
"build": "sdk-commands build --skip-install",
12+
"start": "sdk-commands start",
13+
"deploy": "sdk-commands deploy"
14+
}
15+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"ecs7": true,
3+
"runtimeVersion": "7",
4+
"display": {
5+
"title": "trigger-areas",
6+
"description": "Test",
7+
"navmapThumbnail": "images/scene-thumbnail.png",
8+
"favicon": "favicon_asset"
9+
},
10+
"owner": "",
11+
"contact": {
12+
"name": "Lean",
13+
"email": ""
14+
},
15+
"main": "bin/game.js",
16+
"tags": [],
17+
"spawnPoints": [
18+
{
19+
"name": "spawn1",
20+
"default": true,
21+
"position": {
22+
"x": 0,
23+
"y": 0,
24+
"z": 0
25+
},
26+
"cameraTarget": {
27+
"x": 8,
28+
"y": 1,
29+
"z": 8
30+
}
31+
}
32+
],
33+
"featureToggles": {},
34+
"scene": {
35+
"base": "75,-9",
36+
"parcels": [
37+
"75,-9"
38+
]
39+
},
40+
"name": "trigger-areas"
41+
}

0 commit comments

Comments
 (0)