@hytopia.com/examples 1.0.10 → 1.0.12

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.
@@ -0,0 +1,31 @@
1
+ {
2
+ "health": 100,
3
+ "currentRegionId": "stalkhaven-port",
4
+ "currentRegionSpawnFacingAngle": 180,
5
+ "currentRegionSpawnPoint": {
6
+ "x": -6,
7
+ "y": 8,
8
+ "z": -28
9
+ },
10
+ "skillExperience": [],
11
+ "backpack": {
12
+ "items": []
13
+ },
14
+ "hotbar": {
15
+ "items": [
16
+ {
17
+ "position": 0,
18
+ "itemId": "toy_sword"
19
+ }
20
+ ]
21
+ },
22
+ "questLog": {
23
+ "quests": []
24
+ },
25
+ "storage": {
26
+ "items": []
27
+ },
28
+ "wearables": {
29
+ "items": []
30
+ }
31
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "health": 100,
3
+ "currentRegionId": "stalkhaven",
4
+ "currentRegionSpawnFacingAngle": 90,
5
+ "currentRegionSpawnPoint": {
6
+ "x": 32,
7
+ "y": 2,
8
+ "z": 1
9
+ },
10
+ "skillExperience": [],
11
+ "backpack": {
12
+ "items": []
13
+ },
14
+ "hotbar": {
15
+ "items": [
16
+ {
17
+ "position": 0,
18
+ "itemId": "toy_sword"
19
+ }
20
+ ]
21
+ },
22
+ "questLog": {
23
+ "quests": []
24
+ },
25
+ "storage": {
26
+ "items": []
27
+ },
28
+ "wearables": {
29
+ "items": []
30
+ }
31
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "health": 100,
3
+ "currentRegionId": "stalkhaven-port",
4
+ "skillExperience": [],
5
+ "backpack": {
6
+ "items": []
7
+ },
8
+ "hotbar": {
9
+ "items": [
10
+ {
11
+ "position": 0,
12
+ "itemId": "toy_sword"
13
+ }
14
+ ]
15
+ },
16
+ "questLog": {
17
+ "quests": []
18
+ },
19
+ "storage": {
20
+ "items": []
21
+ },
22
+ "wearables": {
23
+ "items": []
24
+ }
25
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "health": 100,
3
+ "currentRegionId": "stalkhaven-port",
4
+ "currentRegionSpawnFacingAngle": 180,
5
+ "currentRegionSpawnPoint": {
6
+ "x": -6,
7
+ "y": 8,
8
+ "z": -28
9
+ },
10
+ "skillExperience": [],
11
+ "backpack": {
12
+ "items": []
13
+ },
14
+ "hotbar": {
15
+ "items": [
16
+ {
17
+ "position": 0,
18
+ "itemId": "toy_sword"
19
+ }
20
+ ]
21
+ },
22
+ "questLog": {
23
+ "quests": []
24
+ },
25
+ "storage": {
26
+ "items": []
27
+ },
28
+ "wearables": {
29
+ "items": []
30
+ }
31
+ }
@@ -319,6 +319,7 @@ export default class GamePlayer {
319
319
  this.setCurrentRegion(region);
320
320
  this.setCurrentRegionSpawnFacingAngle(facingAngle);
321
321
  this.setCurrentRegionSpawnPoint(spawnPoint);
322
+ this.save();
322
323
  this.player.joinWorld(region.world);
323
324
  }
324
325
 
@@ -186,8 +186,6 @@ export default class GamePlayerEntity extends DefaultPlayerEntity implements IDa
186
186
  super.despawn();
187
187
  // Disassociate entity from GamePlayer
188
188
  this._gamePlayer.despawnFromRegion();
189
- // Save player data
190
- this._gamePlayer.save();
191
189
  }
192
190
 
193
191
  public takeDamage(damage: number): void {
@@ -15,10 +15,10 @@ export default class WeaversHollowRegion extends GameRegion {
15
15
  id: 'weavers-hollow',
16
16
  name: `Weaver's Hollow`,
17
17
  map: weaversHollowMap,
18
- maxAmbientLightIntensity: 0.075,
18
+ maxAmbientLightIntensity: 0.095,
19
19
  maxDirectionalLightIntensity: 0.8,
20
- minAmbientLightIntensity: 0.055,
21
- minDirectionalLightIntensity: 0.4,
20
+ minAmbientLightIntensity: 0.075,
21
+ minDirectionalLightIntensity: 0.5,
22
22
  respawnOverride: {
23
23
  regionId: 'ratkin-nest',
24
24
  facingAngle: 135,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/examples",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",