react-simple-game-engine 0.1.24 → 0.1.25
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.
@@ -25,7 +25,7 @@ export declare abstract class Entity<P extends Record<string, any> = Record<stri
|
|
25
25
|
get props(): P;
|
26
26
|
/**
|
27
27
|
* @param {DieOptions} options
|
28
|
-
* #duration: time to disappear from the world in seconds, default: 2 seconds
|
28
|
+
* #duration: time to disappear from the world in seconds, default: 0.2 seconds
|
29
29
|
* #effect: effect to showing on duration time
|
30
30
|
* @void
|
31
31
|
*/
|
@@ -91,14 +91,14 @@ var Entity = /** @class */ (function (_super) {
|
|
91
91
|
});
|
92
92
|
/**
|
93
93
|
* @param {DieOptions} options
|
94
|
-
* #duration: time to disappear from the world in seconds, default: 2 seconds
|
94
|
+
* #duration: time to disappear from the world in seconds, default: 0.2 seconds
|
95
95
|
* #effect: effect to showing on duration time
|
96
96
|
* @void
|
97
97
|
*/
|
98
98
|
Entity.prototype.die = function (options) {
|
99
99
|
var _this = this;
|
100
100
|
if (options) {
|
101
|
-
var _a = options.duration, duration = _a === void 0 ? 2 : _a, effect = options.effect;
|
101
|
+
var _a = options.duration, duration = _a === void 0 ? 0.2 : _a, effect = options.effect;
|
102
102
|
this.isLive = false;
|
103
103
|
Body.setVelocity(this.body, {
|
104
104
|
y: 0,
|