hytopia 0.1.84 → 0.1.86

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.
@@ -24,7 +24,7 @@ Worlds are the primary container for game objects and interactions. A game can h
24
24
  const world = new World({
25
25
  id: 1,
26
26
  name: 'My World',
27
- skyboxUri: 'textures/skyboxes/default.png',
27
+ skyboxUri: 'skyboxes/partly-cloudy',
28
28
  });
29
29
  ```
30
30
 
@@ -3,112 +3,112 @@
3
3
  {
4
4
  "id": 1,
5
5
  "name": "bricks",
6
- "textureUri": "textures/bricks.png"
6
+ "textureUri": "blocks/bricks.png"
7
7
  },
8
8
  {
9
9
  "id": 2,
10
10
  "name": "clay",
11
- "textureUri": "textures/clay.png"
11
+ "textureUri": "blocks/clay.png"
12
12
  },
13
13
  {
14
14
  "id": 3,
15
- "name": "diamond_ore",
16
- "textureUri": "textures/diamond_ore.png"
15
+ "name": "diamond-ore",
16
+ "textureUri": "blocks/diamond-ore.png"
17
17
  },
18
18
  {
19
19
  "id": 4,
20
20
  "name": "dirt",
21
- "textureUri": "textures/dirt.png"
21
+ "textureUri": "blocks/dirt.png"
22
22
  },
23
23
  {
24
24
  "id": 5,
25
- "name": "dragons_stone",
26
- "textureUri": "textures/dragons_stone.png"
25
+ "name": "dragons-stone",
26
+ "textureUri": "blocks/dragons-stone.png"
27
27
  },
28
28
  {
29
29
  "id": 6,
30
30
  "name": "glass",
31
- "textureUri": "textures/glass.png"
31
+ "textureUri": "blocks/glass.png"
32
32
  },
33
33
  {
34
34
  "id": 7,
35
35
  "name": "grass",
36
- "textureUri": "textures/grass"
36
+ "textureUri": "blocks/grass"
37
37
  },
38
38
  {
39
39
  "id": 8,
40
40
  "name": "gravel",
41
- "textureUri": "textures/gravel.png"
41
+ "textureUri": "blocks/gravel.png"
42
42
  },
43
43
  {
44
44
  "id": 9,
45
45
  "name": "ice",
46
- "textureUri": "textures/ice.png"
46
+ "textureUri": "blocks/ice.png"
47
47
  },
48
48
  {
49
49
  "id": 10,
50
- "name": "infected_shadowrock",
51
- "textureUri": "textures/infected_shadowrock.png"
50
+ "name": "infected-shadowrock",
51
+ "textureUri": "blocks/infected-shadowrock.png"
52
52
  },
53
53
  {
54
54
  "id": 11,
55
- "name": "log_side",
56
- "textureUri": "textures/log_side.png"
55
+ "name": "log-side",
56
+ "textureUri": "blocks/log"
57
57
  },
58
58
  {
59
59
  "id": 12,
60
- "name": "log_top",
61
- "textureUri": "textures/log_top.png"
60
+ "name": "log-top",
61
+ "textureUri": "blocks/log"
62
62
  },
63
63
  {
64
64
  "id": 13,
65
- "name": "mossy_coblestone",
66
- "textureUri": "textures/mossy_coblestone.png"
65
+ "name": "mossy-coblestone",
66
+ "textureUri": "blocks/mossy-coblestone.png"
67
67
  },
68
68
  {
69
69
  "id": 14,
70
70
  "name": "nuit",
71
- "textureUri": "textures/nuit.png"
71
+ "textureUri": "blocks/nuit.png"
72
72
  },
73
73
  {
74
74
  "id": 15,
75
- "name": "oak_leaves",
76
- "textureUri": "textures/oak_leaves.png"
75
+ "name": "oak-leaves",
76
+ "textureUri": "blocks/oak-leaves.png"
77
77
  },
78
78
  {
79
79
  "id": 16,
80
- "name": "oak_planks",
81
- "textureUri": "textures/oak_planks.png"
80
+ "name": "oak-planks",
81
+ "textureUri": "blocks/oak-planks.png"
82
82
  },
83
83
  {
84
84
  "id": 17,
85
85
  "name": "sand",
86
- "textureUri": "textures/sand.png"
86
+ "textureUri": "blocks/sand.png"
87
87
  },
88
88
  {
89
89
  "id": 18,
90
90
  "name": "shadowrock",
91
- "textureUri": "textures/shadowrock.png"
91
+ "textureUri": "blocks/shadowrock.png"
92
92
  },
93
93
  {
94
94
  "id": 19,
95
95
  "name": "stone",
96
- "textureUri": "textures/stone.png"
96
+ "textureUri": "blocks/stone.png"
97
97
  },
98
98
  {
99
99
  "id": 20,
100
- "name": "stone_bricks",
101
- "textureUri": "textures/stone_bricks.png"
100
+ "name": "stone-bricks",
101
+ "textureUri": "blocks/stone-bricks.png"
102
102
  },
103
103
  {
104
104
  "id": 21,
105
- "name": "void_sand",
106
- "textureUri": "textures/void_sand.png"
105
+ "name": "void-sand",
106
+ "textureUri": "blocks/void-sand.png"
107
107
  },
108
108
  {
109
109
  "id": 22,
110
- "name": "water_still",
111
- "textureUri": "textures/water_still.png",
110
+ "name": "water-still",
111
+ "textureUri": "blocks/water-still.png",
112
112
  "isLiquid": true
113
113
  }
114
114
  ],
@@ -97,7 +97,7 @@ startServer((world) => {
97
97
  const playerEntity = new PlayerEntity({
98
98
  player,
99
99
  name: "Player",
100
- modelUri: "models/player.gltf",
100
+ modelUri: "models/players/player.gltf",
101
101
  modelLoopedAnimations: ["idle"],
102
102
  modelScale: 0.5,
103
103
  });
@@ -151,7 +151,7 @@ startServer((world) => {
151
151
  */
152
152
 
153
153
  new Audio({
154
- uri: "audio/music/overworld.mp3",
154
+ uri: "audio/music/hytopia-main.mp3",
155
155
  loop: true,
156
156
  volume: 0.1,
157
157
  }).play(world);
@@ -9,8 +9,8 @@
9
9
  "typescript": "^5.0.0"
10
10
  },
11
11
  "dependencies": {
12
- "@hytopia.com/assets": "^0.1.6",
13
- "hytopia": "^0.1.77",
12
+ "@hytopia.com/assets": "^0.2.3",
13
+ "hytopia": "^0.1.85",
14
14
  "openai": "^4.77.3"
15
15
  }
16
16
  }
@@ -78,7 +78,7 @@ export class BaseAgent extends Entity {
78
78
  constructor(options: { name?: string; systemPrompt: string }) {
79
79
  super({
80
80
  name: options.name || "BaseAgent",
81
- modelUri: "models/player.gltf",
81
+ modelUri: "models/players/player.gltf",
82
82
  modelLoopedAnimations: ["idle"],
83
83
  modelScale: 0.5,
84
84
  controller: new SimpleEntityController(),
@@ -114,7 +114,7 @@ export default class MyEntityController extends BaseEntityController {
114
114
  */
115
115
  public attach(entity: Entity) {
116
116
  this._stepAudio = new Audio({
117
- uri: 'audio/sfx/step.wav',
117
+ uri: 'audio/sfx/step/stone-step-01.mp3',
118
118
  loop: true,
119
119
  volume: 0.1,
120
120
  attachedToEntity: entity,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.1.84",
3
+ "version": "0.1.86",
4
4
  "description": "The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.",
5
5
  "main": "server.js",
6
6
  "bin": {
package/server.api.json CHANGED
@@ -31179,7 +31179,7 @@
31179
31179
  {
31180
31180
  "kind": "Class",
31181
31181
  "canonicalReference": "server!World:class",
31182
- "docComment": "/**\n * Represents a world in the game server.\n *\n * @remarks\n *\n * Worlds are the primary container for game objects and interactions. A game can have multiple worlds running simultaneously, each uniquely isolated from each other. Players who have joined your server can be assigned to a world programmatically by your game logic if desired. This is useful for things like mini-games, or complex dungeons with multiple floors that can be optimized by splitting them into seperate world or \"room\" simulations, etc. In most cases, the single automatically created default world is all you need, but this flexibility is available for more complex games.\n *\n * @example\n * ```typescript\n * const world = new World({\n * id: 1,\n * name: 'My World',\n * skyboxUri: 'textures/skyboxes/default.png',\n * });\n * ```\n *\n * @public\n */\n",
31182
+ "docComment": "/**\n * Represents a world in the game server.\n *\n * @remarks\n *\n * Worlds are the primary container for game objects and interactions. A game can have multiple worlds running simultaneously, each uniquely isolated from each other. Players who have joined your server can be assigned to a world programmatically by your game logic if desired. This is useful for things like mini-games, or complex dungeons with multiple floors that can be optimized by splitting them into seperate world or \"room\" simulations, etc. In most cases, the single automatically created default world is all you need, but this flexibility is available for more complex games.\n *\n * @example\n * ```typescript\n * const world = new World({\n * id: 1,\n * name: 'My World',\n * skyboxUri: 'skyboxes/partly-cloudy',\n * });\n * ```\n *\n * @public\n */\n",
31183
31183
  "excerptTokens": [
31184
31184
  {
31185
31185
  "kind": "Content",
package/server.d.ts CHANGED
@@ -3930,7 +3930,7 @@ export declare interface Vector3Like {
3930
3930
  * const world = new World({
3931
3931
  * id: 1,
3932
3932
  * name: 'My World',
3933
- * skyboxUri: 'textures/skyboxes/default.png',
3933
+ * skyboxUri: 'skyboxes/partly-cloudy',
3934
3934
  * });
3935
3935
  * ```
3936
3936
  *