@hytopia.com/examples 1.0.25 → 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.
@@ -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
- // const hearthwildsRegion = new HearthwildsRegion();
52
- // this._regions.set(hearthwildsRegion.id, hearthwildsRegion);
53
- // GameClock.instance.addRegionClockCycle(hearthwildsRegion);
54
- // this._startRegion = hearthwildsRegion;
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();
@@ -323,7 +323,6 @@ export default class BaseEntity extends Entity implements IInteractable, IDamage
323
323
  }
324
324
 
325
325
  public takeDamage(damage: number, attacker?: Entity): void {
326
- console.log(damage);
327
326
  this.adjustHealth(-damage, attacker);
328
327
  }
329
328
 
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/examples",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -0,0 +1,3 @@
1
+ # particles
2
+
3
+ An example showing how to use particle emitters for a variety of visual effects.