@hytopia.com/examples 1.0.28 → 1.0.30
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/chitter-forest.json +501 -501
- package/frontiers-rpg-game/src/GameManager.ts +1 -0
- package/frontiers-rpg-game/src/entities/enemies/GorkinChieftanEntity.ts +0 -7
- package/frontiers-rpg-game/src/entities/enemies/GorkinEnforcerEntity.ts +0 -8
- package/frontiers-rpg-game/src/entities/enemies/GorkinGruntEntity.ts +0 -15
- package/frontiers-rpg-game/src/entities/enemies/GorkinHunterEntity.ts +0 -8
- package/frontiers-rpg-game/src/entities/enemies/GorkinShamanEntity.ts +0 -8
- package/frontiers-rpg-game/src/entities/enemies/GorkinSwordsmanEntity.ts +0 -7
- package/frontiers-rpg-game/src/entities/enemies/RatkinBruteEntity.ts +0 -8
- package/frontiers-rpg-game/src/entities/enemies/RatkinRangerEntity.ts +0 -8
- package/frontiers-rpg-game/src/entities/enemies/RatkinSpellcasterEntity.ts +0 -8
- package/frontiers-rpg-game/src/entities/enemies/RatkinWarriorEntity.ts +0 -8
- package/frontiers-rpg-game/src/entities/enemies/ReclusiveWeaverEntity.ts +0 -17
- package/package.json +1 -1
- package/particles/index.ts +9 -9
- package/particles/package.json +1 -1
|
@@ -51,6 +51,7 @@ export default class GameManager {
|
|
|
51
51
|
const hearthwildsRegion = new HearthwildsRegion();
|
|
52
52
|
this._regions.set(hearthwildsRegion.id, hearthwildsRegion);
|
|
53
53
|
GameClock.instance.addRegionClockCycle(hearthwildsRegion);
|
|
54
|
+
// this._startRegion = hearthwildsRegion;
|
|
54
55
|
|
|
55
56
|
// Ratkin Nest
|
|
56
57
|
const ratkinNestRegion = new RatkinNestRegion();
|
|
@@ -5,9 +5,6 @@ import { isDamageable } from '../../interfaces/IDamageable';
|
|
|
5
5
|
import type { Vector3Like, QuaternionLike, World } from 'hytopia';
|
|
6
6
|
import type BaseEntity from "../BaseEntity";
|
|
7
7
|
|
|
8
|
-
// Aggro Target Types
|
|
9
|
-
import ReclusiveWeaverEntity from "./ReclusiveWeaverEntity";
|
|
10
|
-
|
|
11
8
|
// Drops
|
|
12
9
|
import GoldItem from "../../items/general/GoldItem";
|
|
13
10
|
import ChieftanBladeItem from "../../items/weapons/ChieftanBladeItem";
|
|
@@ -34,10 +31,6 @@ export default class GorkinChieftanEntity extends BaseCombatEntity {
|
|
|
34
31
|
super({
|
|
35
32
|
aggroRadius: 9,
|
|
36
33
|
aggroSensorForwardOffset: 3,
|
|
37
|
-
aggroTargetTypes: [
|
|
38
|
-
GamePlayerEntity,
|
|
39
|
-
ReclusiveWeaverEntity,
|
|
40
|
-
],
|
|
41
34
|
attacks: [
|
|
42
35
|
{ // Slash, stab attack
|
|
43
36
|
animations: [ 'atk1' ],
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { ColliderShape, RigidBodyType } from "hytopia";
|
|
2
2
|
import BaseCombatEntity, { BaseCombatEntityOptions } from "../BaseCombatEntity";
|
|
3
|
-
import GamePlayerEntity from "../../GamePlayerEntity";
|
|
4
|
-
|
|
5
|
-
// Aggro Target Types
|
|
6
|
-
import ReclusiveWeaverEntity from "./ReclusiveWeaverEntity";
|
|
7
3
|
|
|
8
4
|
// Drops
|
|
9
5
|
import GoldItem from "../../items/general/GoldItem";
|
|
@@ -26,10 +22,6 @@ export default class GorkinEnforcerEntity extends BaseCombatEntity {
|
|
|
26
22
|
super({
|
|
27
23
|
aggroRadius: 9,
|
|
28
24
|
aggroSensorForwardOffset: 3,
|
|
29
|
-
aggroTargetTypes: [
|
|
30
|
-
GamePlayerEntity,
|
|
31
|
-
ReclusiveWeaverEntity,
|
|
32
|
-
],
|
|
33
25
|
attacks: [
|
|
34
26
|
{
|
|
35
27
|
animations: [ 'atk1' ],
|
|
@@ -2,13 +2,6 @@ import BaseCombatEntity, { BaseCombatEntityOptions } from "../BaseCombatEntity";
|
|
|
2
2
|
import GamePlayerEntity from "../../GamePlayerEntity";
|
|
3
3
|
import type BaseEntity from "../BaseEntity";
|
|
4
4
|
|
|
5
|
-
// Aggro Target Types
|
|
6
|
-
import RatkinBruteEntity from "./RatkinBruteEntity";
|
|
7
|
-
import RatkinRangerEntity from "./RatkinRangerEntity";
|
|
8
|
-
import RatkinSpellcasterEntity from "./RatkinSpellcasterEntity";
|
|
9
|
-
import RatkinWarriorEntity from "./RatkinWarriorEntity";
|
|
10
|
-
import ReclusiveWeaverEntity from "./ReclusiveWeaverEntity";
|
|
11
|
-
|
|
12
5
|
// Drops
|
|
13
6
|
import GoldItem from "../../items/general/GoldItem";
|
|
14
7
|
import GorkinEarItem from "../../items/materials/GorkinEarItem";
|
|
@@ -30,14 +23,6 @@ export default class GorkinGruntEntity extends BaseCombatEntity {
|
|
|
30
23
|
super({
|
|
31
24
|
aggroRadius: 9,
|
|
32
25
|
aggroSensorForwardOffset: 3,
|
|
33
|
-
aggroTargetTypes: [
|
|
34
|
-
GamePlayerEntity,
|
|
35
|
-
RatkinBruteEntity,
|
|
36
|
-
RatkinRangerEntity,
|
|
37
|
-
RatkinSpellcasterEntity,
|
|
38
|
-
RatkinWarriorEntity,
|
|
39
|
-
ReclusiveWeaverEntity,
|
|
40
|
-
],
|
|
41
26
|
attacks: [
|
|
42
27
|
{ // Light attack
|
|
43
28
|
animations: [ 'atk1' ],
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import BaseCombatEntity, { BaseCombatEntityOptions } from "../BaseCombatEntity";
|
|
2
2
|
import BaseProjectileEntity from "../BaseProjectileEntity";
|
|
3
|
-
import GamePlayerEntity from "../../GamePlayerEntity";
|
|
4
3
|
import type { Vector3Like } from 'hytopia';
|
|
5
4
|
|
|
6
|
-
// Aggro Target Types
|
|
7
|
-
import ReclusiveWeaverEntity from "./ReclusiveWeaverEntity";
|
|
8
|
-
|
|
9
5
|
// Drops
|
|
10
6
|
import GoldItem from "../../items/general/GoldItem";
|
|
11
7
|
import GorkinEarItem from "../../items/materials/GorkinEarItem";
|
|
@@ -26,10 +22,6 @@ export default class GorkinHunterEntity extends BaseCombatEntity {
|
|
|
26
22
|
super({
|
|
27
23
|
aggroRadius: 13,
|
|
28
24
|
aggroSensorForwardOffset: 4,
|
|
29
|
-
aggroTargetTypes: [
|
|
30
|
-
GamePlayerEntity,
|
|
31
|
-
ReclusiveWeaverEntity,
|
|
32
|
-
],
|
|
33
25
|
attacks: [
|
|
34
26
|
{ // Slow heavy bow attack
|
|
35
27
|
animations: [ 'atk1' ],
|
|
@@ -2,10 +2,6 @@ import { ColliderShape, Entity, RigidBodyType } from "hytopia";
|
|
|
2
2
|
import { isDamageable } from '../../interfaces/IDamageable';
|
|
3
3
|
import BaseCombatEntity, { BaseCombatEntityOptions } from "../BaseCombatEntity";
|
|
4
4
|
import BaseProjectileEntity from '../BaseProjectileEntity';
|
|
5
|
-
import GamePlayerEntity from "../../GamePlayerEntity";
|
|
6
|
-
|
|
7
|
-
// Aggro Target Types
|
|
8
|
-
import ReclusiveWeaverEntity from "./ReclusiveWeaverEntity";
|
|
9
5
|
|
|
10
6
|
// Drops
|
|
11
7
|
import GoldItem from "../../items/general/GoldItem";
|
|
@@ -27,10 +23,6 @@ export default class GorkinShamanEntity extends BaseCombatEntity {
|
|
|
27
23
|
super({
|
|
28
24
|
aggroRadius: 9,
|
|
29
25
|
aggroSensorForwardOffset: 3,
|
|
30
|
-
aggroTargetTypes: [
|
|
31
|
-
GamePlayerEntity,
|
|
32
|
-
ReclusiveWeaverEntity,
|
|
33
|
-
],
|
|
34
26
|
attacks: [
|
|
35
27
|
{ // Toxic AoE
|
|
36
28
|
animations: [ 'atk1' ],
|
|
@@ -3,9 +3,6 @@ import BaseCombatEntity, { BaseCombatEntityOptions } from "../BaseCombatEntity";
|
|
|
3
3
|
import GamePlayerEntity from "../../GamePlayerEntity";
|
|
4
4
|
import type BaseEntity from "../BaseEntity";
|
|
5
5
|
|
|
6
|
-
// Aggro Target Types
|
|
7
|
-
import ReclusiveWeaverEntity from "./ReclusiveWeaverEntity";
|
|
8
|
-
|
|
9
6
|
// Drops
|
|
10
7
|
import GoldItem from "../../items/general/GoldItem";
|
|
11
8
|
import GorkinEarItem from "../../items/materials/GorkinEarItem";
|
|
@@ -27,10 +24,6 @@ export default class GorkinSwordsmanEntity extends BaseCombatEntity {
|
|
|
27
24
|
super({
|
|
28
25
|
aggroRadius: 9,
|
|
29
26
|
aggroSensorForwardOffset: 3,
|
|
30
|
-
aggroTargetTypes: [
|
|
31
|
-
GamePlayerEntity,
|
|
32
|
-
ReclusiveWeaverEntity,
|
|
33
|
-
],
|
|
34
27
|
attacks: [
|
|
35
28
|
{ // heavy, slow slam attack
|
|
36
29
|
animations: [ 'atk1' ],
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import BaseCombatEntity, { BaseCombatEntityOptions } from "../BaseCombatEntity";
|
|
2
2
|
|
|
3
|
-
// Aggro Target Types
|
|
4
|
-
import GamePlayerEntity from "../../GamePlayerEntity";
|
|
5
|
-
import GorkinGruntEntity from "./GorkinGruntEntity";
|
|
6
|
-
|
|
7
3
|
// Drops
|
|
8
4
|
import CommonMushroomItem from "../../items/consumables/CommonMushroomItem";
|
|
9
5
|
import CommonSeedsItem from "../../items/seeds/CommonSeedsItem";
|
|
@@ -23,10 +19,6 @@ export default class RatkinBruteEntity extends BaseCombatEntity {
|
|
|
23
19
|
super({
|
|
24
20
|
aggroRadius: 7.5,
|
|
25
21
|
aggroSensorForwardOffset: 3,
|
|
26
|
-
aggroTargetTypes: [
|
|
27
|
-
GamePlayerEntity,
|
|
28
|
-
GorkinGruntEntity,
|
|
29
|
-
],
|
|
30
22
|
attacks: [
|
|
31
23
|
{ // Heavy body slam attack
|
|
32
24
|
animations: [ 'atk1' ],
|
|
@@ -2,10 +2,6 @@ import BaseCombatEntity, { BaseCombatEntityOptions } from "../BaseCombatEntity";
|
|
|
2
2
|
import BaseProjectileEntity from "../BaseProjectileEntity";
|
|
3
3
|
import type { Vector3Like } from 'hytopia';
|
|
4
4
|
|
|
5
|
-
// Aggro Target Types
|
|
6
|
-
import GamePlayerEntity from "../../GamePlayerEntity";
|
|
7
|
-
import GorkinGruntEntity from "./GorkinGruntEntity";
|
|
8
|
-
|
|
9
5
|
// Drops
|
|
10
6
|
import CommonMushroomItem from "../../items/consumables/CommonMushroomItem";
|
|
11
7
|
import CommonSeedsItem from "../../items/seeds/CommonSeedsItem";
|
|
@@ -25,10 +21,6 @@ export default class RatkinRangerEntity extends BaseCombatEntity {
|
|
|
25
21
|
super({
|
|
26
22
|
aggroRadius: 11,
|
|
27
23
|
aggroSensorForwardOffset: 3,
|
|
28
|
-
aggroTargetTypes: [
|
|
29
|
-
GamePlayerEntity,
|
|
30
|
-
GorkinGruntEntity,
|
|
31
|
-
],
|
|
32
24
|
attacks: [
|
|
33
25
|
{ // Fast bow attack
|
|
34
26
|
animations: [ 'atk1' ],
|
|
@@ -2,10 +2,6 @@ import BaseCombatEntity, { BaseCombatEntityOptions } from "../BaseCombatEntity";
|
|
|
2
2
|
import BaseProjectileEntity from "../BaseProjectileEntity";
|
|
3
3
|
import type { Vector3Like } from 'hytopia';
|
|
4
4
|
|
|
5
|
-
// Aggro Target Types
|
|
6
|
-
import GamePlayerEntity from "../../GamePlayerEntity";
|
|
7
|
-
import GorkinGruntEntity from "./GorkinGruntEntity";
|
|
8
|
-
|
|
9
5
|
// Drops
|
|
10
6
|
import CommonMushroomItem from "../../items/consumables/CommonMushroomItem";
|
|
11
7
|
import CommonSeedsItem from "../../items/seeds/CommonSeedsItem";
|
|
@@ -25,10 +21,6 @@ export default class RatkinSpellcasterEntity extends BaseCombatEntity {
|
|
|
25
21
|
super({
|
|
26
22
|
aggroRadius: 12,
|
|
27
23
|
aggroSensorForwardOffset: 3,
|
|
28
|
-
aggroTargetTypes: [
|
|
29
|
-
GamePlayerEntity,
|
|
30
|
-
GorkinGruntEntity,
|
|
31
|
-
],
|
|
32
24
|
attacks: [
|
|
33
25
|
{ // Fireball attack
|
|
34
26
|
animations: [ 'atk1' ],
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import BaseCombatEntity, { BaseCombatEntityOptions } from "../BaseCombatEntity";
|
|
2
2
|
|
|
3
|
-
// Aggro Target Types
|
|
4
|
-
import GamePlayerEntity from "../../GamePlayerEntity";
|
|
5
|
-
import GorkinGruntEntity from "./GorkinGruntEntity";
|
|
6
|
-
|
|
7
3
|
// Drops
|
|
8
4
|
import CommonMushroomItem from "../../items/consumables/CommonMushroomItem";
|
|
9
5
|
import CommonSeedsItem from "../../items/seeds/CommonSeedsItem";
|
|
@@ -23,10 +19,6 @@ export default class RatkinWarriorEntity extends BaseCombatEntity {
|
|
|
23
19
|
super({
|
|
24
20
|
aggroRadius: 7.5,
|
|
25
21
|
aggroSensorForwardOffset: 3,
|
|
26
|
-
aggroTargetTypes: [
|
|
27
|
-
GamePlayerEntity,
|
|
28
|
-
GorkinGruntEntity,
|
|
29
|
-
],
|
|
30
22
|
attacks: [
|
|
31
23
|
{ // Heavy attack
|
|
32
24
|
animations: [ 'atk1' ],
|
|
@@ -4,14 +4,6 @@ import SpiderwebEntity from "./SpiderWebEntity";
|
|
|
4
4
|
import GamePlayerEntity from "../../GamePlayerEntity";
|
|
5
5
|
import type BaseEntity from "../BaseEntity";
|
|
6
6
|
|
|
7
|
-
// Aggro Target Types
|
|
8
|
-
import GorkinChieftanEntity from "./GorkinChieftanEntity";
|
|
9
|
-
import GorkinEnforcerEntity from "./GorkinEnforcerEntity";
|
|
10
|
-
import GorkinGruntEntity from "./GorkinGruntEntity";
|
|
11
|
-
import GorkinHunterEntity from "./GorkinHunterEntity";
|
|
12
|
-
import GorkinShamanEntity from "./GorkinShamanEntity";
|
|
13
|
-
import GorkinSwordsmanEntity from "./GorkinSwordsmanEntity";
|
|
14
|
-
|
|
15
7
|
// Drops
|
|
16
8
|
import GoldItem from "../../items/general/GoldItem";
|
|
17
9
|
import WeaverCarapaceItem from "../../items/materials/WeaverCarapaceItem";
|
|
@@ -28,15 +20,6 @@ export default class ReclusiveWeaverEntity extends BaseCombatEntity {
|
|
|
28
20
|
super({
|
|
29
21
|
aggroRadius: 10,
|
|
30
22
|
aggroSensorForwardOffset: 7,
|
|
31
|
-
aggroTargetTypes: [
|
|
32
|
-
GamePlayerEntity,
|
|
33
|
-
GorkinChieftanEntity,
|
|
34
|
-
GorkinEnforcerEntity,
|
|
35
|
-
GorkinGruntEntity,
|
|
36
|
-
GorkinHunterEntity,
|
|
37
|
-
GorkinShamanEntity,
|
|
38
|
-
GorkinSwordsmanEntity,
|
|
39
|
-
],
|
|
40
23
|
attacks: [
|
|
41
24
|
{ // Bite attack
|
|
42
25
|
animations: [ 'fang_attack' ],
|
package/package.json
CHANGED
package/particles/index.ts
CHANGED
|
@@ -34,8 +34,8 @@ startServer(world => {
|
|
|
34
34
|
const dirtParticleEmitter = new ParticleEmitter({
|
|
35
35
|
textureUri: 'particles/dirt.png',
|
|
36
36
|
colorStart: { r: 194, g: 164, b: 132 },
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
sizeStart: 1,
|
|
38
|
+
sizeStartVariance: 1, // Variates the base size +/- this value
|
|
39
39
|
lifetime: 5, // How long the particles live for in seconds
|
|
40
40
|
lifetimeVariance: 3, // Variates the base lifetime +/- this value
|
|
41
41
|
position: { x: 0, y: 1, z: 0 }, // Position of the emitter
|
|
@@ -48,7 +48,7 @@ startServer(world => {
|
|
|
48
48
|
|
|
49
49
|
// Start/stop the emitter every 3 seconds
|
|
50
50
|
setInterval(() => {
|
|
51
|
-
if (dirtParticleEmitter.
|
|
51
|
+
if (dirtParticleEmitter.paused) {
|
|
52
52
|
dirtParticleEmitter.restart();
|
|
53
53
|
} else {
|
|
54
54
|
dirtParticleEmitter.stop();
|
|
@@ -64,8 +64,8 @@ startServer(world => {
|
|
|
64
64
|
colorEnd: { r: 255, g: 255, b: 255 }, // White base color
|
|
65
65
|
colorEndVariance: { r: 255, g: 255, b: 255 }, // rgb varies +/- 255
|
|
66
66
|
gravity: { x: 0, y: -3, z: 0 }, // Gravity of the particles, pull them down at a rate of 3 blocks per second
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
sizeStart: 1, // Base size of the particles
|
|
68
|
+
sizeStartVariance: 2, // Variates the base size +/- this value
|
|
69
69
|
lifetime: 5, // How long the particles live for in seconds
|
|
70
70
|
lifetimeVariance: 3, // Variates the base lifetime +/- this value
|
|
71
71
|
rate: 50, // How many particles to emit per second
|
|
@@ -91,8 +91,8 @@ startServer(world => {
|
|
|
91
91
|
opacityStart: 0.7, // Starting opacity of the particles
|
|
92
92
|
opacityStartVariance: 0.5, // Variates the base opacity +/- this value
|
|
93
93
|
opacityEnd: 0, // Ending opacity of the particles
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
sizeStart: 1, // Base size of the particles
|
|
95
|
+
sizeEnd: 50,
|
|
96
96
|
lifetime: 10, // How long the particles live for in seconds
|
|
97
97
|
lifetimeVariance: 5, // Variates the base lifetime +/- this value
|
|
98
98
|
rate: 40, // How many particles to emit per second
|
|
@@ -118,8 +118,8 @@ function attachPlayerParticles(playerEntity: DefaultPlayerEntity) {
|
|
|
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
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
sizeStart: 0.1, // Base size of the particles
|
|
122
|
+
sizeStartVariance: 0.25, // Variates the base size +/- this value
|
|
123
123
|
lifetime: 4, // How long the particles live for in seconds
|
|
124
124
|
rate: 10, // How many particles to emit per second
|
|
125
125
|
maxParticles: 30, // Maximum number of visible particles at any given time
|