@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.
Files changed (80) hide show
  1. package/editor.js +447 -439
  2. package/materials/T_Bark_D.jpg +0 -0
  3. package/materials/T_Bark_N.jpg +0 -0
  4. package/materials/T_Cobblestone_D.jpg +0 -0
  5. package/materials/T_Cobblestone_N.jpg +0 -0
  6. package/materials/T_Concrete_D.jpg +0 -0
  7. package/materials/T_Concrete_N.jpg +0 -0
  8. package/materials/T_FloorTiles_D.jpg +0 -0
  9. package/materials/T_FloorTiles_N.jpg +0 -0
  10. package/materials/T_Grass_D.jpg +0 -0
  11. package/materials/T_Grass_N.jpg +0 -0
  12. package/materials/T_Gravel_D.jpg +0 -0
  13. package/materials/T_Gravel_N.jpg +0 -0
  14. package/materials/T_Ice_D.jpg +0 -0
  15. package/materials/T_Ice_N.jpg +0 -0
  16. package/materials/T_Marble_D.jpg +0 -0
  17. package/materials/T_Marble_N.jpg +0 -0
  18. package/materials/T_MetalPlate_D.jpg +0 -0
  19. package/materials/T_MetalPlate_N.jpg +0 -0
  20. package/materials/T_Metal_D.jpg +0 -0
  21. package/materials/T_Metal_N.jpg +0 -0
  22. package/materials/T_MossyRock_D.jpg +0 -0
  23. package/materials/T_MossyRock_N.jpg +0 -0
  24. package/materials/T_OldBrick_D.jpg +0 -0
  25. package/materials/T_OldBrick_N.jpg +0 -0
  26. package/materials/T_Planks_D.jpg +0 -0
  27. package/materials/T_Planks_N.jpg +0 -0
  28. package/materials/T_RedBrick_D.jpg +0 -0
  29. package/materials/T_RedBrick_N.jpg +0 -0
  30. package/materials/T_Rock_D.jpg +0 -0
  31. package/materials/T_Rock_N.jpg +0 -0
  32. package/materials/T_RoofTiles_D.jpg +0 -0
  33. package/materials/T_RoofTiles_N.jpg +0 -0
  34. package/materials/T_RustyMetal_D.jpg +0 -0
  35. package/materials/T_RustyMetal_N.jpg +0 -0
  36. package/materials/T_Sand_D.jpg +0 -0
  37. package/materials/T_Sand_N.jpg +0 -0
  38. package/materials/T_Snow_D.jpg +0 -0
  39. package/materials/T_Snow_N.jpg +0 -0
  40. package/materials/T_StoneBlocks_D.jpg +0 -0
  41. package/materials/T_StoneBlocks_N.jpg +0 -0
  42. package/materials/T_Wood_D.jpg +0 -0
  43. package/materials/T_Wood_N.jpg +0 -0
  44. package/package.json +1 -1
  45. package/prefabs/catalog.json +1 -1
  46. package/prefabs/leaderboard/ai.md +3 -0
  47. package/prefabs/leaderboard/composite.json +4 -2
  48. package/prefabs/leaderboard/data.json +5 -1
  49. package/prefabs/leaderboard/scripts/leaderboard.ts +4 -3
  50. package/scene/about +1 -1
  51. package/scene/{bafkreifyskofqvjvp22m3eaxz2mpwibp7j4wtimdj5bxtqsd7onkbnjlsa → bafkreigk2a2bd5h73uubuzcqh4erz4s2p7cigdqp2qz4b47omhleeuvzfe} +1 -1
  52. package/scene/bafybeic3eddetvdagicmhn4f3le62bhbhpxzjqxooc6vooepeehsgu66q4 +90 -0
  53. package/sounds/click.mp3 +0 -0
  54. package/sounds/close.mp3 +0 -0
  55. package/sounds/coin.mp3 +0 -0
  56. package/sounds/countdown-tick.mp3 +0 -0
  57. package/sounds/door-close.mp3 +0 -0
  58. package/sounds/door-open.mp3 +0 -0
  59. package/sounds/error.mp3 +0 -0
  60. package/sounds/explosion.mp3 +0 -0
  61. package/sounds/fire-loop.mp3 +0 -0
  62. package/sounds/gem.mp3 +0 -0
  63. package/sounds/hit.mp3 +0 -0
  64. package/sounds/jump.mp3 +0 -0
  65. package/sounds/land.mp3 +0 -0
  66. package/sounds/lever.mp3 +0 -0
  67. package/sounds/lose.mp3 +0 -0
  68. package/sounds/machine-loop.mp3 +0 -0
  69. package/sounds/open.mp3 +0 -0
  70. package/sounds/point.mp3 +0 -0
  71. package/sounds/power-up.mp3 +0 -0
  72. package/sounds/rumble-loop.mp3 +0 -0
  73. package/sounds/splat.mp3 +0 -0
  74. package/sounds/start.mp3 +0 -0
  75. package/sounds/teleport.mp3 +0 -0
  76. package/sounds/time-up.mp3 +0 -0
  77. package/sounds/win.mp3 +0 -0
  78. package/three/worker.js +167 -167
  79. package/web-build/sdk-snapshot.json +1 -1
  80. 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 EMPTY = 'Nothing to show yet — set the board key the server writes to.'
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: runs ? 'Complete a run to set the first time.' : 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.8 })
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:bafkreifyskofqvjvp22m3eaxz2mpwibp7j4wtimdj5bxtqsd7onkbnjlsa"
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":"bafybeiblcndgruoz3ewqrheei4moyeoehankul4yd43co33djksumfd3se"}],"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"}
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"}