react-simple-game-engine 0.2.136 → 0.3.1
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/lib/classes/animations/animation.d.ts +2 -0
- package/lib/classes/animations/animation.d.ts.map +1 -1
- package/lib/classes/animations/animation.js +10 -0
- package/lib/classes/animations/animator.d.ts +2 -2
- package/lib/classes/animations/animator.d.ts.map +1 -1
- package/lib/classes/animations/animator.js +0 -1
- package/lib/classes/entities/{entity-sult.d.ts → entity-suit.d.ts} +8 -8
- package/lib/classes/entities/{entity-sult.d.ts.map → entity-suit.d.ts.map} +1 -1
- package/lib/classes/entities/{entity-sult.js → entity-suit.js} +25 -25
- package/lib/classes/entities/entity.d.ts +3 -3
- package/lib/classes/entities/entity.js +2 -2
- package/lib/classes/logic-component.d.ts +6 -6
- package/lib/classes/logic-component.d.ts.map +1 -1
- package/lib/classes/logic-component.js +8 -8
- package/lib/classes/p5.js +2 -2
- package/lib/classes/particle-system.d.ts +2 -2
- package/lib/classes/particle-system.js +2 -2
- package/lib/classes/particle.d.ts +2 -2
- package/lib/classes/particle.d.ts.map +1 -1
- package/lib/classes/prefab.d.ts +4 -4
- package/lib/classes/prefab.d.ts.map +1 -1
- package/lib/classes/prefab.js +2 -2
- package/lib/classes/scene.d.ts +7 -7
- package/lib/classes/scene.d.ts.map +1 -1
- package/lib/classes/scene.js +20 -20
- package/lib/classes/sound.js +1 -1
- package/lib/classes/sprites/avatar.sprite.d.ts +3 -3
- package/lib/classes/sprites/avatar.sprite.d.ts.map +1 -1
- package/lib/classes/watcher.js +4 -4
- package/lib/classes/world-management.d.ts +7 -7
- package/lib/classes/world-management.d.ts.map +1 -1
- package/lib/classes/world-management.js +3 -3
- package/lib/decorators/sound-from.decor.d.ts +1 -1
- package/lib/decorators/sound-from.decor.d.ts.map +1 -1
- package/lib/decorators/sound-from.decor.js +5 -5
- package/lib/decorators/sprite-from.decor.d.ts +1 -1
- package/lib/decorators/sprite-from.decor.d.ts.map +1 -1
- package/lib/decorators/sprite-from.decor.js +5 -5
- package/lib/export-interfaces.d.ts +1 -1
- package/lib/export-interfaces.d.ts.map +1 -1
- package/lib/export-types.d.ts +6 -4
- package/lib/export-types.d.ts.map +1 -1
- package/lib/hooks/entity.d.ts +2 -2
- package/lib/hooks/watcher.js +4 -4
- package/lib/ui-components/control.js +2 -2
- package/lib/ui-components/float-container.js +2 -2
- package/lib/ui-components/game-bootstrap.js +4 -4
- package/lib/ui-components/logger.js +3 -3
- package/lib/ui-components/modal.js +3 -3
- package/lib/ui-components/scaler-container.js +2 -2
- package/lib/ui-components/scene-runner.js +4 -4
- package/lib/utils.d.ts +1 -1
- package/lib/utils.js +5 -5
- package/package.json +1 -1
@@ -4,6 +4,8 @@ export declare abstract class AnimationSprite {
|
|
4
4
|
protected _isRunning: boolean;
|
5
5
|
protected timeCounter: number;
|
6
6
|
private timePerFrame;
|
7
|
+
private maxCycle;
|
8
|
+
private cycleCounter;
|
7
9
|
set isRunning(_isRunning: boolean);
|
8
10
|
abstract initial(params: AnimationInitialParams): void;
|
9
11
|
draw(): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../src/classes/animations/animation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,8BAAsB,eAAe;IACnC,SAAS,CAAC,YAAY,EAAE,MAAM,CAAK;IACnC,SAAS,CAAC,UAAU,UAAQ;IAC5B,SAAS,CAAC,WAAW,SAAK;IAE1B,OAAO,CAAC,YAAY,CAAO;
|
1
|
+
{"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../src/classes/animations/animation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,8BAAsB,eAAe;IACnC,SAAS,CAAC,YAAY,EAAE,MAAM,CAAK;IACnC,SAAS,CAAC,UAAU,UAAQ;IAC5B,SAAS,CAAC,WAAW,SAAK;IAE1B,OAAO,CAAC,YAAY,CAAO;IAC3B,OAAO,CAAC,QAAQ,CAAK;IACrB,OAAO,CAAC,YAAY,CAAK;IAEzB,IAAI,SAAS,CAAC,UAAU,EAAE,OAAO,EAQhC;IAED,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI;IAEtD,IAAI;IAwBJ,SAAS,CAAC,QAAQ,CAAC,aAAa,IAAI,OAAO;IAC3C,SAAS,CAAC,QAAQ,CAAC,MAAM,IAAI,IAAI;CAClC"}
|
@@ -4,6 +4,8 @@ var AnimationSprite = /** @class */ (function () {
|
|
4
4
|
this._isRunning = true;
|
5
5
|
this.timeCounter = 0;
|
6
6
|
this.timePerFrame = 200;
|
7
|
+
this.maxCycle = 0;
|
8
|
+
this.cycleCounter = 1;
|
7
9
|
}
|
8
10
|
Object.defineProperty(AnimationSprite.prototype, "isRunning", {
|
9
11
|
set: function (_isRunning) {
|
@@ -12,6 +14,7 @@ var AnimationSprite = /** @class */ (function () {
|
|
12
14
|
// stop
|
13
15
|
this.timeCounter = 0;
|
14
16
|
this.currentFrame = 0;
|
17
|
+
this.cycleCounter = 1;
|
15
18
|
}
|
16
19
|
},
|
17
20
|
enumerable: false,
|
@@ -20,8 +23,15 @@ var AnimationSprite = /** @class */ (function () {
|
|
20
23
|
AnimationSprite.prototype.draw = function () {
|
21
24
|
if (this.checkFrameMax()) {
|
22
25
|
this.currentFrame = 0;
|
26
|
+
this.cycleCounter++;
|
23
27
|
}
|
24
28
|
this.onDraw();
|
29
|
+
// if max cycle = 0, then don't care about counter, just infinite
|
30
|
+
if (this.maxCycle) {
|
31
|
+
if (this.cycleCounter > this.maxCycle) {
|
32
|
+
this.isRunning = false;
|
33
|
+
}
|
34
|
+
}
|
25
35
|
if (this.timeCounter >= this.timePerFrame) {
|
26
36
|
this.timeCounter = 0;
|
27
37
|
if (this._isRunning) {
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import {
|
1
|
+
import { Initializer } from "../../export-interfaces";
|
2
2
|
import { Sprite } from "../sprites/sprite";
|
3
3
|
import { AnimationSprite } from "./animation";
|
4
4
|
declare type AnimatorInitialParams = {
|
5
5
|
activeKey: any;
|
6
6
|
states: Record<any, AnimationSprite>;
|
7
7
|
};
|
8
|
-
export declare class Animator implements
|
8
|
+
export declare class Animator implements Initializer<AnimatorInitialParams> {
|
9
9
|
private states;
|
10
10
|
private activeKey;
|
11
11
|
initial(params: AnimatorInitialParams): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"animator.d.ts","sourceRoot":"","sources":["../../../src/classes/animations/animator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"animator.d.ts","sourceRoot":"","sources":["../../../src/classes/animations/animator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG9C,aAAK,qBAAqB,GAAG;IAC3B,SAAS,EAAE,GAAG,CAAC;IACf,MAAM,EAAE,MAAM,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC;CACtC,CAAC;AAEF,qBAAa,QAAS,YAAW,WAAW,CAAC,qBAAqB,CAAC;IACjE,OAAO,CAAC,MAAM,CAA+B;IAC7C,OAAO,CAAC,SAAS,CAAM;IAEvB,OAAO,CAAC,MAAM,EAAE,qBAAqB;IAIrC,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC;IAe9B,IAAI;IAIJ,kBAAkB;IAIlB,IAAI,KAAK,CAAC,CAAC,EAAE,GAAG,EAEf;IAED,IAAI,KAAK,IAJI,GAAG,CAMf;CACF"}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { Initializer } from "../../export-interfaces";
|
2
2
|
import { SimpleCamera } from "../simple-camera";
|
3
3
|
import { LogicComponent } from "../logic-component";
|
4
4
|
import { Scene } from "../scene";
|
5
5
|
import { WorldManagement } from "../world-management";
|
6
6
|
import { P5 } from "../p5";
|
7
|
-
export declare abstract class
|
7
|
+
export declare abstract class EntitySuit<P = any> implements Initializer<P> {
|
8
8
|
simpleCamera: SimpleCamera;
|
9
9
|
readonly id: string;
|
10
10
|
private _layerIndex;
|
@@ -21,18 +21,18 @@ export declare abstract class EntitySult<P = any> implements Initialler<P> {
|
|
21
21
|
abstract draw(): void;
|
22
22
|
get renderer(): P5;
|
23
23
|
set renderer(_renderer: P5);
|
24
|
-
get children():
|
24
|
+
get children(): EntitySuit<any>[];
|
25
25
|
get layerIndex(): number;
|
26
26
|
get name(): string;
|
27
27
|
set layerIndex(_layerIndex: number);
|
28
28
|
set name(_name: string);
|
29
|
-
get parent():
|
29
|
+
get parent(): EntitySuit<any>;
|
30
30
|
get scene(): Scene<any>;
|
31
31
|
set worldManagement(_worldManagement: WorldManagement);
|
32
32
|
get worldManagement(): WorldManagement;
|
33
|
-
addChild(target:
|
34
|
-
removeChild(entity:
|
35
|
-
unChild(entity:
|
33
|
+
addChild(target: EntitySuit | LogicComponent<EntitySuit>): void;
|
34
|
+
removeChild(entity: EntitySuit): void;
|
35
|
+
unChild(entity: EntitySuit): void;
|
36
36
|
getProperty<T>(name: string): T;
|
37
37
|
preInitial(worldManagement: WorldManagement): void;
|
38
38
|
active(_: WorldManagement): void;
|
@@ -64,4 +64,4 @@ export declare abstract class EntitySult<P = any> implements Initialler<P> {
|
|
64
64
|
onBootstrapCompleted(): void;
|
65
65
|
initial(params: P): void;
|
66
66
|
}
|
67
|
-
//# sourceMappingURL=entity-
|
67
|
+
//# sourceMappingURL=entity-suit.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"entity-
|
1
|
+
{"version":3,"file":"entity-suit.d.ts","sourceRoot":"","sources":["../../../src/classes/entities/entity-suit.ts"],"names":[],"mappings":"AAAA,OAAO,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,CAWpD;IAED,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,cAAc,CAAC,UAAU,CAAC;IASxD,WAAW,CAAC,MAAM,EAAE,UAAU;IAK9B,OAAO,CAAC,MAAM,EAAE,UAAU;IAO1B,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;IAI/B,UAAU,CAAC,eAAe,EAAE,eAAe;IAO3C,MAAM,CAAC,CAAC,EAAE,eAAe;IAKzB,kBAAkB,CAAC,CAAC,EAAE,eAAe;IAIrC;;;OAGG;IACH,WAAW;IAEX;;;OAGG;IACH,cAAc;IAEd;;;OAGG;IACH,cAAc;IAEd;;;OAGG;IACH,QAAQ;IAER;;;OAGG;IACH,oBAAoB;IAEpB,OAAO,CAAC,MAAM,EAAE,CAAC;CAClB"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { genId } from "../../utils";
|
2
|
-
var
|
3
|
-
function
|
2
|
+
var EntitySuit = /** @class */ (function () {
|
3
|
+
function EntitySuit() {
|
4
4
|
this.id = genId();
|
5
5
|
this._layerIndex = 0;
|
6
6
|
this._name = this.id;
|
@@ -9,7 +9,7 @@ var EntitySult = /** @class */ (function () {
|
|
9
9
|
this.scaleX = 1;
|
10
10
|
this.scaleY = 1;
|
11
11
|
}
|
12
|
-
Object.defineProperty(
|
12
|
+
Object.defineProperty(EntitySuit.prototype, "renderer", {
|
13
13
|
get: function () {
|
14
14
|
return this._renderer;
|
15
15
|
},
|
@@ -23,14 +23,14 @@ var EntitySult = /** @class */ (function () {
|
|
23
23
|
enumerable: false,
|
24
24
|
configurable: true
|
25
25
|
});
|
26
|
-
Object.defineProperty(
|
26
|
+
Object.defineProperty(EntitySuit.prototype, "children", {
|
27
27
|
get: function () {
|
28
28
|
return this._children;
|
29
29
|
},
|
30
30
|
enumerable: false,
|
31
31
|
configurable: true
|
32
32
|
});
|
33
|
-
Object.defineProperty(
|
33
|
+
Object.defineProperty(EntitySuit.prototype, "layerIndex", {
|
34
34
|
get: function () {
|
35
35
|
return this._layerIndex;
|
36
36
|
},
|
@@ -43,7 +43,7 @@ var EntitySult = /** @class */ (function () {
|
|
43
43
|
enumerable: false,
|
44
44
|
configurable: true
|
45
45
|
});
|
46
|
-
Object.defineProperty(
|
46
|
+
Object.defineProperty(EntitySuit.prototype, "name", {
|
47
47
|
get: function () {
|
48
48
|
return this._name;
|
49
49
|
},
|
@@ -63,21 +63,21 @@ var EntitySult = /** @class */ (function () {
|
|
63
63
|
enumerable: false,
|
64
64
|
configurable: true
|
65
65
|
});
|
66
|
-
Object.defineProperty(
|
66
|
+
Object.defineProperty(EntitySuit.prototype, "parent", {
|
67
67
|
get: function () {
|
68
68
|
return this._parent;
|
69
69
|
},
|
70
70
|
enumerable: false,
|
71
71
|
configurable: true
|
72
72
|
});
|
73
|
-
Object.defineProperty(
|
73
|
+
Object.defineProperty(EntitySuit.prototype, "scene", {
|
74
74
|
get: function () {
|
75
75
|
return this._scene;
|
76
76
|
},
|
77
77
|
enumerable: false,
|
78
78
|
configurable: true
|
79
79
|
});
|
80
|
-
Object.defineProperty(
|
80
|
+
Object.defineProperty(EntitySuit.prototype, "worldManagement", {
|
81
81
|
get: function () {
|
82
82
|
return this._worldManagement;
|
83
83
|
},
|
@@ -92,65 +92,65 @@ var EntitySult = /** @class */ (function () {
|
|
92
92
|
enumerable: false,
|
93
93
|
configurable: true
|
94
94
|
});
|
95
|
-
|
96
|
-
var entity = target instanceof
|
95
|
+
EntitySuit.prototype.addChild = function (target) {
|
96
|
+
var entity = target instanceof EntitySuit ? target : target.output();
|
97
97
|
entity._parent = this;
|
98
98
|
entity._layerIndex = this._layerIndex;
|
99
99
|
this.children.push(entity);
|
100
100
|
this.worldManagement.addEntity(entity);
|
101
101
|
};
|
102
|
-
|
102
|
+
EntitySuit.prototype.removeChild = function (entity) {
|
103
103
|
this.unChild(entity);
|
104
104
|
this.worldManagement.removeEntity(entity);
|
105
105
|
};
|
106
|
-
|
106
|
+
EntitySuit.prototype.unChild = function (entity) {
|
107
107
|
var delIndex = this.children.indexOf(entity);
|
108
108
|
if (delIndex > -1) {
|
109
109
|
this.children.splice(delIndex, 1);
|
110
110
|
}
|
111
111
|
};
|
112
|
-
|
112
|
+
EntitySuit.prototype.getProperty = function (name) {
|
113
113
|
return this[name];
|
114
114
|
};
|
115
|
-
|
115
|
+
EntitySuit.prototype.preInitial = function (worldManagement) {
|
116
116
|
this._worldManagement = worldManagement;
|
117
117
|
this._scene = worldManagement.scene;
|
118
118
|
this._renderer = worldManagement.scene.renderer;
|
119
119
|
this.simpleCamera = worldManagement.camera;
|
120
120
|
};
|
121
|
-
|
121
|
+
EntitySuit.prototype.active = function (_) {
|
122
122
|
// console.log(`Active entity (name : ${this._name})`);
|
123
123
|
this.onActive();
|
124
124
|
};
|
125
|
-
|
125
|
+
EntitySuit.prototype.bootstrapCompleted = function (_) {
|
126
126
|
this.onBootstrapCompleted();
|
127
127
|
};
|
128
128
|
/**
|
129
129
|
* invoke when mouse move on canvas
|
130
130
|
* @void
|
131
131
|
*/
|
132
|
-
|
132
|
+
EntitySuit.prototype.onMouseMove = function () { };
|
133
133
|
/**
|
134
134
|
* invoke when mouse pressed on canvas
|
135
135
|
* @void
|
136
136
|
*/
|
137
|
-
|
137
|
+
EntitySuit.prototype.onMousePressed = function () { };
|
138
138
|
/**
|
139
139
|
* invoke when mouse release from canvas
|
140
140
|
* @void
|
141
141
|
*/
|
142
|
-
|
142
|
+
EntitySuit.prototype.onMouseRelease = function () { };
|
143
143
|
/**
|
144
144
|
* invoke when entity is added into world
|
145
145
|
* @void
|
146
146
|
*/
|
147
|
-
|
147
|
+
EntitySuit.prototype.onActive = function () { };
|
148
148
|
/**
|
149
149
|
* invoke when scene bootstrap completed, if entity that added after scene completed like ex: prefab, bullet,... then this function will not invoke
|
150
150
|
* @void
|
151
151
|
*/
|
152
|
-
|
153
|
-
|
154
|
-
return
|
152
|
+
EntitySuit.prototype.onBootstrapCompleted = function () { };
|
153
|
+
EntitySuit.prototype.initial = function (params) { };
|
154
|
+
return EntitySuit;
|
155
155
|
}());
|
156
|
-
export {
|
156
|
+
export { EntitySuit };
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import Matter from "matter-js";
|
2
2
|
import { Sprite } from "../sprites/sprite";
|
3
3
|
import { Color, CreateBodyDefine, EntityInitial, EntityPrepare, MasterBody, Point } from "../../export-types";
|
4
|
-
import {
|
4
|
+
import { EntitySuit } from "./entity-suit";
|
5
5
|
import { LogicComponent } from "../logic-component";
|
6
6
|
import { Sound } from "../sound";
|
7
7
|
import { Sensor } from "../sensor";
|
8
8
|
declare type TimerJobListener = () => void;
|
9
9
|
declare type TerminateOptions = {
|
10
10
|
duration?: number;
|
11
|
-
effect:
|
11
|
+
effect: EntitySuit | LogicComponent<EntitySuit>;
|
12
12
|
};
|
13
13
|
declare type TimerOptions = {
|
14
14
|
defaultRun?: boolean;
|
@@ -30,7 +30,7 @@ declare type AddSensorParams = {
|
|
30
30
|
width?: never;
|
31
31
|
height?: never;
|
32
32
|
});
|
33
|
-
export declare abstract class Entity<P extends Record<string, any> = Record<string, any>> extends
|
33
|
+
export declare abstract class Entity<P extends Record<string, any> = Record<string, any>> extends EntitySuit<EntityInitial<Entity>> {
|
34
34
|
private _body;
|
35
35
|
private _sprite;
|
36
36
|
private _props;
|
@@ -37,7 +37,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
37
37
|
};
|
38
38
|
import { Bodies, Body } from "matter-js";
|
39
39
|
import { ColorSprite } from "../sprites/color.sprite";
|
40
|
-
import {
|
40
|
+
import { EntitySuit } from "./entity-suit";
|
41
41
|
import { copyProperties, genId } from "../../utils";
|
42
42
|
import { Sensor } from "../sensor";
|
43
43
|
var Entity = /** @class */ (function (_super) {
|
@@ -258,5 +258,5 @@ var Entity = /** @class */ (function (_super) {
|
|
258
258
|
Entity.prototype.onSensorCollisionEnd = function (sensor, target) { };
|
259
259
|
Entity.prototype.onSensorCollisionActive = function (sensor, target) { };
|
260
260
|
return Entity;
|
261
|
-
}(
|
261
|
+
}(EntitySuit));
|
262
262
|
export { Entity };
|
@@ -1,16 +1,16 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { Initializer } from "../export-interfaces";
|
2
|
+
import { Configurable, Configuration } from "../export-types";
|
3
3
|
import { WorldManagement } from "./world-management";
|
4
|
-
export declare class LogicComponent<C extends
|
5
|
-
private readonly
|
4
|
+
export declare class LogicComponent<C extends Initializer = Initializer> {
|
5
|
+
private readonly configurable;
|
6
6
|
private readonly _isPrefab?;
|
7
7
|
private _worldManagement;
|
8
8
|
layerIndex: number;
|
9
|
-
constructor(
|
9
|
+
constructor(configurable: Configurable<C>, _isPrefab?: boolean);
|
10
10
|
get isPrefab(): boolean;
|
11
11
|
set worldManagement(_worldManagement: WorldManagement);
|
12
12
|
output({ worldManagement, ...targetParams }?: {
|
13
13
|
worldManagement?: WorldManagement;
|
14
|
-
} &
|
14
|
+
} & Configuration<C>): C;
|
15
15
|
}
|
16
16
|
//# sourceMappingURL=logic-component.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"logic-component.d.ts","sourceRoot":"","sources":["../../src/classes/logic-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"logic-component.d.ts","sourceRoot":"","sources":["../../src/classes/logic-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAI9D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,cAAc,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW;IAI3D,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC;IAJ7B,OAAO,CAAC,gBAAgB,CAAkB;IAC1C,UAAU,EAAE,MAAM,CAAK;gBAEJ,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,EAC7B,SAAS,CAAC,EAAE,OAAO;IAGtC,IAAI,QAAQ,YAEX;IAED,IAAI,eAAe,CAAC,gBAAgB,EAAE,eAAe,EAMpD;IAED,MAAM,CAAC,EACL,eAAe,EACf,GAAG,YAAY,EAChB,GAAE;QACD,eAAe,CAAC,EAAE,eAAe,CAAC;KACnC,GAAG,aAAa,CAAC,CAAC,CAAM;CA6C1B"}
|
@@ -21,10 +21,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
21
21
|
return t;
|
22
22
|
};
|
23
23
|
import { Entity } from "./entities/entity";
|
24
|
-
import {
|
24
|
+
import { EntitySuit } from "./entities/entity-suit";
|
25
25
|
var LogicComponent = /** @class */ (function () {
|
26
|
-
function LogicComponent(
|
27
|
-
this.
|
26
|
+
function LogicComponent(configurable, _isPrefab) {
|
27
|
+
this.configurable = configurable;
|
28
28
|
this._isPrefab = _isPrefab;
|
29
29
|
this.layerIndex = 0;
|
30
30
|
}
|
@@ -50,15 +50,15 @@ var LogicComponent = /** @class */ (function () {
|
|
50
50
|
LogicComponent.prototype.output = function (_a) {
|
51
51
|
if (_a === void 0) { _a = {}; }
|
52
52
|
var worldManagement = _a.worldManagement, targetParams = __rest(_a, ["worldManagement"]);
|
53
|
-
var
|
54
|
-
var _b = Array.isArray(
|
55
|
-
?
|
56
|
-
: [
|
53
|
+
var configurable = this.configurable;
|
54
|
+
var _b = Array.isArray(configurable)
|
55
|
+
? configurable
|
56
|
+
: [configurable], Class = _b[0], _c = _b[1], params = _c === void 0 ? {} : _c;
|
57
57
|
var c = new Class();
|
58
58
|
if (worldManagement) {
|
59
59
|
this.worldManagement = worldManagement;
|
60
60
|
}
|
61
|
-
if (c instanceof
|
61
|
+
if (c instanceof EntitySuit) {
|
62
62
|
c["_layerIndex"] = this.layerIndex; // use _layerIndex to not trigger change index process at this step
|
63
63
|
c.preInitial(this._worldManagement);
|
64
64
|
}
|
package/lib/classes/p5.js
CHANGED
@@ -81,12 +81,12 @@ var P5 = /** @class */ (function (_super) {
|
|
81
81
|
return t + item[1];
|
82
82
|
}, 0);
|
83
83
|
if (totalPercentsOfRestItems > 1) {
|
84
|
-
var
|
84
|
+
var overMax = totalPercentsOfRestItems - 1;
|
85
85
|
var avg = 1 / restItems.length;
|
86
86
|
for (var _i = 0, restItems_1 = restItems; _i < restItems_1.length; _i++) {
|
87
87
|
var item = restItems_1[_i];
|
88
88
|
if (item[1] > avg) {
|
89
|
-
item[1] -=
|
89
|
+
item[1] -= overMax;
|
90
90
|
}
|
91
91
|
}
|
92
92
|
totalPercentsOfRestItems = 1;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import p5 from "p5";
|
2
2
|
import { Particle, ParticleInitialParams } from "./particle";
|
3
|
-
import {
|
3
|
+
import { EntitySuit } from "./entities/entity-suit";
|
4
4
|
declare type ParticleClass = {
|
5
5
|
new (...args: ConstructorParameters<typeof Particle>): Particle;
|
6
6
|
};
|
@@ -15,7 +15,7 @@ declare type ParticleSystemInitialParams = {
|
|
15
15
|
vecWeight?: number;
|
16
16
|
forces?: p5.Vector[];
|
17
17
|
};
|
18
|
-
export declare class ParticleSystem extends
|
18
|
+
export declare class ParticleSystem extends EntitySuit<ParticleSystemInitialParams> {
|
19
19
|
private particles;
|
20
20
|
private forces;
|
21
21
|
private particleOptions;
|
@@ -38,7 +38,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
38
38
|
import p5 from "p5";
|
39
39
|
import { copyProperties } from "../utils";
|
40
40
|
import { Particle } from "./particle";
|
41
|
-
import {
|
41
|
+
import { EntitySuit } from "./entities/entity-suit";
|
42
42
|
var ParticleSystem = /** @class */ (function (_super) {
|
43
43
|
__extends(ParticleSystem, _super);
|
44
44
|
function ParticleSystem() {
|
@@ -94,5 +94,5 @@ var ParticleSystem = /** @class */ (function (_super) {
|
|
94
94
|
}
|
95
95
|
};
|
96
96
|
return ParticleSystem;
|
97
|
-
}(
|
97
|
+
}(EntitySuit));
|
98
98
|
export { ParticleSystem };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import p5 from "p5";
|
2
|
-
import {
|
2
|
+
import { Initializer } from "../export-interfaces";
|
3
3
|
import { Avatar, Color } from "../export-types";
|
4
4
|
import { SimpleCamera } from "./simple-camera";
|
5
5
|
export declare type ParticleInitialParams = {
|
@@ -12,7 +12,7 @@ export declare type ParticleInitialParams = {
|
|
12
12
|
simpleCamera: SimpleCamera;
|
13
13
|
forceSpriteSize?: boolean;
|
14
14
|
};
|
15
|
-
export declare class Particle extends p5.Vector implements
|
15
|
+
export declare class Particle extends p5.Vector implements Initializer<ParticleInitialParams> {
|
16
16
|
private vec;
|
17
17
|
private acc;
|
18
18
|
private angle;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"particle.d.ts","sourceRoot":"","sources":["../../src/classes/particle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"particle.d.ts","sourceRoot":"","sources":["../../src/classes/particle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,oBAAY,qBAAqB,GAAG;IAClC,GAAG,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,YAAY,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,qBAAa,QACX,SAAQ,EAAE,CAAC,MACX,YAAW,WAAW,CAAC,qBAAqB,CAAC;IAE7C,OAAO,CAAC,GAAG,CAAsC;IACjD,OAAO,CAAC,GAAG,CAAsC;IACjD,OAAO,CAAC,KAAK,CAAa;IACnB,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,KAAK,CAAmB;IAC/B,IAAI,EAAE,MAAM,CAAK;IACjB,cAAc,EAAE,MAAM,CAAiB;IAE9C,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,SAAS,CAAa;IAE9B,IAAI,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAG5B;IAED,IAAI,QAAQ,IALW,MAAM,CAO5B;IAED,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,MAAM,EAAE,EAAE,qBAAqB;IAOjD,UAAU,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM;IAI3B,MAAM;IAIN,MAAM;IAQN,IAAI;IAuCJ,MAAM,CAAC,CAAC,EAAE,KAAK;CAGhB"}
|
package/lib/classes/prefab.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { Configurable } from "../export-types";
|
2
|
+
import { EntitySuit } from "./entities/entity-suit";
|
3
3
|
import { LogicComponent } from "./logic-component";
|
4
|
-
export declare class Prefab<C extends
|
5
|
-
constructor(
|
4
|
+
export declare class Prefab<C extends EntitySuit = EntitySuit> extends LogicComponent<C> {
|
5
|
+
constructor(configurable: Configurable<C>);
|
6
6
|
}
|
7
7
|
//# sourceMappingURL=prefab.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prefab.d.ts","sourceRoot":"","sources":["../../src/classes/prefab.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"prefab.d.ts","sourceRoot":"","sources":["../../src/classes/prefab.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAAa,MAAM,CACjB,CAAC,SAAS,UAAU,GAAG,UAAU,CACjC,SAAQ,cAAc,CAAC,CAAC,CAAC;gBACb,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC;CAG1C"}
|
package/lib/classes/prefab.js
CHANGED
@@ -16,8 +16,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
16
16
|
import { LogicComponent } from "./logic-component";
|
17
17
|
var Prefab = /** @class */ (function (_super) {
|
18
18
|
__extends(Prefab, _super);
|
19
|
-
function Prefab(
|
20
|
-
return _super.call(this,
|
19
|
+
function Prefab(configurable) {
|
20
|
+
return _super.call(this, configurable, true) || this;
|
21
21
|
}
|
22
22
|
return Prefab;
|
23
23
|
}(LogicComponent));
|
package/lib/classes/scene.d.ts
CHANGED
@@ -3,7 +3,7 @@ import { ComponentType, ReactElement } from "react";
|
|
3
3
|
import { LogicComponent } from "./logic-component";
|
4
4
|
import { SceneManagement } from "./scene-management";
|
5
5
|
import { WorldManagement } from "./world-management";
|
6
|
-
import {
|
6
|
+
import { EntitySuit } from "./entities/entity-suit";
|
7
7
|
import { Prefab } from "./prefab";
|
8
8
|
import { Sound } from "./sound";
|
9
9
|
import { AssetErrorType, AssetsFailBehavior, Avatar, GetSoundOptions, JoystickAction, SoundManagement } from "../export-types";
|
@@ -56,7 +56,7 @@ export declare abstract class Scene<UIP = any> {
|
|
56
56
|
private bootSoundOptions;
|
57
57
|
protected getSoundOptions(): GetSoundOptions;
|
58
58
|
protected onBorn(): void;
|
59
|
-
protected getComponents(simpleCamera: SimpleCamera): LogicComponent<
|
59
|
+
protected getComponents(simpleCamera: SimpleCamera): LogicComponent<EntitySuit>[];
|
60
60
|
getUIProps(): Partial<UIP>;
|
61
61
|
getInitialData(): {
|
62
62
|
joystick?: boolean;
|
@@ -77,19 +77,19 @@ export declare abstract class Scene<UIP = any> {
|
|
77
77
|
switchToScene(tag: string): void;
|
78
78
|
private loadSprites;
|
79
79
|
private loadSounds;
|
80
|
-
createSprites(...
|
80
|
+
createSprites(...sources: (string | {
|
81
81
|
src: string;
|
82
82
|
})[]): Promise<import("p5").Image[]>;
|
83
|
-
createSounds(...
|
83
|
+
createSounds(...sources: (string | {
|
84
84
|
src: string;
|
85
85
|
volume?: number;
|
86
86
|
type?: SoundType;
|
87
87
|
})[]): Promise<Sound[]>;
|
88
|
-
mapSprites(...
|
89
|
-
mapSounds(...
|
88
|
+
mapSprites(...sources: string[]): Promise<void>;
|
89
|
+
mapSounds(...sources: string[]): Promise<void>;
|
90
90
|
loadAssets(delay: number | undefined | null, { skip, render }?: AssetsFailBehavior): Promise<void>;
|
91
91
|
onLoadAssets(): Promise<void>;
|
92
|
-
getPrefab<C extends
|
92
|
+
getPrefab<C extends EntitySuit>(Class: {
|
93
93
|
new (...args: any[]): Prefab<C>;
|
94
94
|
}): Prefab<C>;
|
95
95
|
listenNativeEvents(): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scene.d.ts","sourceRoot":"","sources":["../../src/classes/scene.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AASlC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,MAAM,EACN,eAAe,EACf,cAAc,EAEd,eAAe,EAEhB,MAAM,iBAAiB,CAAC;AAC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