@hytopia.com/examples 1.0.26 → 1.0.27
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/frontiers-rpg-game/assets/maps/hearthwilds.json +156973 -38437
- package/frontiers-rpg-game/src/GameManager.ts +6 -5
- package/frontiers-rpg-game/src/regions/hearthwilds/HearthwildsRegion.ts +3 -0
- package/package.json +1 -1
- package/particles/index.ts +1 -1
- package/particles/package.json +1 -1
- package/frontiers-rpg-game/dev/persistence/player-player-1.json +0 -44
|
@@ -46,12 +46,13 @@ export default class GameManager {
|
|
|
46
46
|
const chitterForestRegion = new ChitterForestRegion();
|
|
47
47
|
this._regions.set(chitterForestRegion.id, chitterForestRegion);
|
|
48
48
|
GameClock.instance.addRegionClockCycle(chitterForestRegion);
|
|
49
|
+
// this._startRegion = chitterForestRegion;
|
|
49
50
|
|
|
50
51
|
// Hearthwilds
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
const hearthwildsRegion = new HearthwildsRegion();
|
|
53
|
+
this._regions.set(hearthwildsRegion.id, hearthwildsRegion);
|
|
54
|
+
GameClock.instance.addRegionClockCycle(hearthwildsRegion);
|
|
55
|
+
this._startRegion = hearthwildsRegion;
|
|
55
56
|
|
|
56
57
|
// Ratkin Nest
|
|
57
58
|
const ratkinNestRegion = new RatkinNestRegion();
|
|
@@ -68,7 +69,7 @@ export default class GameManager {
|
|
|
68
69
|
const stalkhavenPortRegion = new StalkhavenPortRegion();
|
|
69
70
|
this._regions.set(stalkhavenPortRegion.id, stalkhavenPortRegion);
|
|
70
71
|
GameClock.instance.addRegionClockCycle(stalkhavenPortRegion);
|
|
71
|
-
this._startRegion = stalkhavenPortRegion;
|
|
72
|
+
// this._startRegion = stalkhavenPortRegion;
|
|
72
73
|
|
|
73
74
|
// Weaver's Hollow
|
|
74
75
|
const weaversHollowRegion = new WeaversHollowRegion();
|
|
@@ -15,6 +15,9 @@ export default class HearthwildsRegion extends GameRegion {
|
|
|
15
15
|
skyboxUri: 'skyboxes/partly-cloudy',
|
|
16
16
|
spawnPoint: { x: 200, y: 15, z: -75 },
|
|
17
17
|
ambientAudioUri: 'audio/music/jungle-theme-looping.mp3',
|
|
18
|
+
fogColor: { r: 152, g: 196, b: 127 },
|
|
19
|
+
fogNear: 10,
|
|
20
|
+
fogFar: 40,
|
|
18
21
|
});
|
|
19
22
|
}
|
|
20
23
|
|
package/package.json
CHANGED
package/particles/index.ts
CHANGED
|
@@ -111,10 +111,10 @@ function attachPlayerParticles(playerEntity: DefaultPlayerEntity) {
|
|
|
111
111
|
// Bubble emitter effect from players
|
|
112
112
|
const particleEmitter = new ParticleEmitter({
|
|
113
113
|
attachedToEntity: playerEntity, // Attached to an entity instead of a position, in this case the player entity
|
|
114
|
+
attachedToEntityNodeName: 'hand-right-anchor', // Optional, Emit from the right hand named model node of the player entity, this is an explicit name of a gltf node in the model.
|
|
114
115
|
textureUri: 'particles/circle-blur.png',
|
|
115
116
|
colorStart: { r: 128, g: 128, b: 255 }, // Blue base color
|
|
116
117
|
gravity: { x: 0, y: -1, z: 0 }, // Gravity of the particles, pull them down at a rate of 1 block per second
|
|
117
|
-
offset: { x: 0, y: 0.85, z: 0 }, // Offset of the particles from the entity
|
|
118
118
|
opacityStartVariance: 0.5, // Variates the base opacity +/- this value
|
|
119
119
|
velocity: { x: 0, y: 1, z: 0 }, // Velocity of the particles
|
|
120
120
|
velocityVariance: { x: 1, y: 0.5, z: 1 }, // Variates the base velocity +/- this value
|
package/particles/package.json
CHANGED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"health": 100,
|
|
3
|
-
"currentRegionId": "stalkhaven",
|
|
4
|
-
"skillExperience": [
|
|
5
|
-
[
|
|
6
|
-
"agility",
|
|
7
|
-
43
|
|
8
|
-
]
|
|
9
|
-
],
|
|
10
|
-
"backpack": {
|
|
11
|
-
"items": []
|
|
12
|
-
},
|
|
13
|
-
"hotbar": {
|
|
14
|
-
"items": [
|
|
15
|
-
{
|
|
16
|
-
"position": 0,
|
|
17
|
-
"itemId": "toy_sword"
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
},
|
|
21
|
-
"questLog": {
|
|
22
|
-
"quests": [
|
|
23
|
-
{
|
|
24
|
-
"questId": "welcome-to-stalkhaven",
|
|
25
|
-
"state": "active",
|
|
26
|
-
"objectiveProgress": {
|
|
27
|
-
"talk-to-mark": 0
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
"storage": {
|
|
33
|
-
"items": []
|
|
34
|
-
},
|
|
35
|
-
"wearables": {
|
|
36
|
-
"items": []
|
|
37
|
-
},
|
|
38
|
-
"currentRegionSpawnFacingAngle": 0,
|
|
39
|
-
"currentRegionSpawnPoint": {
|
|
40
|
-
"x": 1,
|
|
41
|
-
"y": 2,
|
|
42
|
-
"z": 40
|
|
43
|
-
}
|
|
44
|
-
}
|