@dcl-regenesislabs/web-editor 0.3.8 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/editor.js +447 -439
- package/materials/T_Bark_D.jpg +0 -0
- package/materials/T_Bark_N.jpg +0 -0
- package/materials/T_Cobblestone_D.jpg +0 -0
- package/materials/T_Cobblestone_N.jpg +0 -0
- package/materials/T_Concrete_D.jpg +0 -0
- package/materials/T_Concrete_N.jpg +0 -0
- package/materials/T_FloorTiles_D.jpg +0 -0
- package/materials/T_FloorTiles_N.jpg +0 -0
- package/materials/T_Grass_D.jpg +0 -0
- package/materials/T_Grass_N.jpg +0 -0
- package/materials/T_Gravel_D.jpg +0 -0
- package/materials/T_Gravel_N.jpg +0 -0
- package/materials/T_Ice_D.jpg +0 -0
- package/materials/T_Ice_N.jpg +0 -0
- package/materials/T_Marble_D.jpg +0 -0
- package/materials/T_Marble_N.jpg +0 -0
- package/materials/T_MetalPlate_D.jpg +0 -0
- package/materials/T_MetalPlate_N.jpg +0 -0
- package/materials/T_Metal_D.jpg +0 -0
- package/materials/T_Metal_N.jpg +0 -0
- package/materials/T_MossyRock_D.jpg +0 -0
- package/materials/T_MossyRock_N.jpg +0 -0
- package/materials/T_OldBrick_D.jpg +0 -0
- package/materials/T_OldBrick_N.jpg +0 -0
- package/materials/T_Planks_D.jpg +0 -0
- package/materials/T_Planks_N.jpg +0 -0
- package/materials/T_RedBrick_D.jpg +0 -0
- package/materials/T_RedBrick_N.jpg +0 -0
- package/materials/T_Rock_D.jpg +0 -0
- package/materials/T_Rock_N.jpg +0 -0
- package/materials/T_RoofTiles_D.jpg +0 -0
- package/materials/T_RoofTiles_N.jpg +0 -0
- package/materials/T_RustyMetal_D.jpg +0 -0
- package/materials/T_RustyMetal_N.jpg +0 -0
- package/materials/T_Sand_D.jpg +0 -0
- package/materials/T_Sand_N.jpg +0 -0
- package/materials/T_Snow_D.jpg +0 -0
- package/materials/T_Snow_N.jpg +0 -0
- package/materials/T_StoneBlocks_D.jpg +0 -0
- package/materials/T_StoneBlocks_N.jpg +0 -0
- package/materials/T_Wood_D.jpg +0 -0
- package/materials/T_Wood_N.jpg +0 -0
- package/package.json +1 -1
- package/prefabs/catalog.json +1 -1
- package/prefabs/leaderboard/ai.md +3 -0
- package/prefabs/leaderboard/composite.json +4 -2
- package/prefabs/leaderboard/data.json +5 -1
- package/prefabs/leaderboard/scripts/leaderboard.ts +4 -3
- package/scene/about +1 -1
- package/scene/{bafkreifyskofqvjvp22m3eaxz2mpwibp7j4wtimdj5bxtqsd7onkbnjlsa → bafkreigk2a2bd5h73uubuzcqh4erz4s2p7cigdqp2qz4b47omhleeuvzfe} +1 -1
- package/scene/bafybeic3eddetvdagicmhn4f3le62bhbhpxzjqxooc6vooepeehsgu66q4 +90 -0
- package/sounds/click.mp3 +0 -0
- package/sounds/close.mp3 +0 -0
- package/sounds/coin.mp3 +0 -0
- package/sounds/countdown-tick.mp3 +0 -0
- package/sounds/door-close.mp3 +0 -0
- package/sounds/door-open.mp3 +0 -0
- package/sounds/error.mp3 +0 -0
- package/sounds/explosion.mp3 +0 -0
- package/sounds/fire-loop.mp3 +0 -0
- package/sounds/gem.mp3 +0 -0
- package/sounds/hit.mp3 +0 -0
- package/sounds/jump.mp3 +0 -0
- package/sounds/land.mp3 +0 -0
- package/sounds/lever.mp3 +0 -0
- package/sounds/lose.mp3 +0 -0
- package/sounds/machine-loop.mp3 +0 -0
- package/sounds/open.mp3 +0 -0
- package/sounds/point.mp3 +0 -0
- package/sounds/power-up.mp3 +0 -0
- package/sounds/rumble-loop.mp3 +0 -0
- package/sounds/splat.mp3 +0 -0
- package/sounds/start.mp3 +0 -0
- package/sounds/teleport.mp3 +0 -0
- package/sounds/time-up.mp3 +0 -0
- package/sounds/win.mp3 +0 -0
- package/three/worker.js +167 -167
- package/web-build/sdk-snapshot.json +1 -1
- package/scene/bafybeiblcndgruoz3ewqrheei4moyeoehankul4yd43co33djksumfd3se +0 -90
|
@@ -19,7 +19,8 @@ import { mountLeaderboardHud } from './leaderboard-hud'
|
|
|
19
19
|
|
|
20
20
|
const NAME_REFRESH_S = 1
|
|
21
21
|
|
|
22
|
-
const
|
|
22
|
+
const EMPTY_TIMES = 'No times yet — be the first!'
|
|
23
|
+
const EMPTY_SCORES = 'No scores yet — be the first!'
|
|
23
24
|
|
|
24
25
|
export class Leaderboard {
|
|
25
26
|
private panel: Entity | null = null
|
|
@@ -77,7 +78,7 @@ export class Leaderboard {
|
|
|
77
78
|
const rows = boardRows(game.state[runs ? runBoardKey(this.courseId) : this.boardKey], sort, clampRows(this.rows))
|
|
78
79
|
.map((row) => ({ ...row, name: playerName(row.player) ?? row.name }))
|
|
79
80
|
return { title: this.title, sort, rows,
|
|
80
|
-
empty:
|
|
81
|
+
empty: sort === 'asc' ? EMPTY_TIMES : EMPTY_SCORES }
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
// The text lives on a child so the model can be replaced without touching it.
|
|
@@ -97,6 +98,6 @@ export class Leaderboard {
|
|
|
97
98
|
shape.text = text
|
|
98
99
|
return
|
|
99
100
|
}
|
|
100
|
-
TextShape.createOrReplace(panel, { text, fontSize: 0.
|
|
101
|
+
TextShape.createOrReplace(panel, { text, fontSize: 0.6, textWrapping: true, width: 1.5 })
|
|
101
102
|
}
|
|
102
103
|
}
|
package/scene/about
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"networkId": 0,
|
|
6
6
|
"globalScenesUrn": [],
|
|
7
7
|
"scenesUrn": [
|
|
8
|
-
"urn:decentraland:entity:
|
|
8
|
+
"urn:decentraland:entity:bafkreigk2a2bd5h73uubuzcqh4erz4s2p7cigdqp2qz4b47omhleeuvzfe"
|
|
9
9
|
],
|
|
10
10
|
"realmName": "editor-scene"
|
|
11
11
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"content":[{"file":"scene.json","hash":"bafkreiby2gmthtauf7cckttphmhpecsueyypi2hzlke4lcodg7fm4cm2sq"},{"file":"main.crdt","hash":"bafkreihdwdcefgh4dqkjv67uzcmw7ojee6xedzdetojuzjevtenxquvyku"},{"file":"bin/index.js","hash":"
|
|
1
|
+
{"content":[{"file":"scene.json","hash":"bafkreiby2gmthtauf7cckttphmhpecsueyypi2hzlke4lcodg7fm4cm2sq"},{"file":"main.crdt","hash":"bafkreihdwdcefgh4dqkjv67uzcmw7ojee6xedzdetojuzjevtenxquvyku"},{"file":"bin/index.js","hash":"bafybeic3eddetvdagicmhn4f3le62bhbhpxzjqxooc6vooepeehsgu66q4"}],"pointers":[],"timestamp":0,"type":"scene","metadata":{"ecs7":true,"runtimeVersion":"7","display":{"title":"Component Inspector","description":"Inspect and modify component state of the current scene"},"owner":"","contact":{"name":"","email":""},"main":"bin/index.js","tags":[],"scene":{"parcels":["0,0"],"base":"0,0"},"spawnPoints":[],"featureToggles":{"portableExperiences":"enabled"}},"version":"v3"}
|