@zakkster/lite-tools 2.0.4 → 2.0.5
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/LiteEngine.d.ts +1 -1
- package/LiteEngine.js +3 -3
- package/README.md +1 -1
- package/package.json +1 -1
package/LiteEngine.d.ts
CHANGED
|
@@ -105,7 +105,7 @@ export { Timeline } from '@zakkster/lite-timeline';
|
|
|
105
105
|
// Interaction + utility
|
|
106
106
|
export { GestureTracker } from '@zakkster/lite-gesture';
|
|
107
107
|
export { confetti, createConfetti } from '@zakkster/lite-confetti';
|
|
108
|
-
export {
|
|
108
|
+
export { liteId } from '@zakkster/lite-id';
|
|
109
109
|
export { Vec2 } from '@zakkster/lite-vec';
|
|
110
110
|
export { Seek, Flee, Wander, Arrive, Pursuit, Evade, PathFollow, Separation, Alignment, Cohesion, Flock } from '@zakkster/lite-steer';
|
|
111
111
|
|
package/LiteEngine.js
CHANGED
|
@@ -104,7 +104,7 @@ export {Timeline} from '@zakkster/lite-timeline';
|
|
|
104
104
|
// Interaction + utility
|
|
105
105
|
export {GestureTracker} from '@zakkster/lite-gesture';
|
|
106
106
|
export {confetti, createConfetti} from '@zakkster/lite-confetti';
|
|
107
|
-
export {
|
|
107
|
+
export {liteId} from '@zakkster/lite-id';
|
|
108
108
|
export {Vec2} from '@zakkster/lite-vec';
|
|
109
109
|
export {
|
|
110
110
|
Seek, Flee, Wander, Arrive, Pursuit, Evade, PathFollow, Separation, Alignment, Cohesion, Flock
|
|
@@ -167,7 +167,7 @@ import {seedNoise, fbm2} from '@zakkster/lite-noise';
|
|
|
167
167
|
import {Timeline} from '@zakkster/lite-timeline';
|
|
168
168
|
import {GestureTracker} from '@zakkster/lite-gesture';
|
|
169
169
|
import {confetti as confettiFn} from '@zakkster/lite-confetti';
|
|
170
|
-
import {
|
|
170
|
+
import {liteId} from '@zakkster/lite-id';
|
|
171
171
|
import {Vec2} from '@zakkster/lite-vec';
|
|
172
172
|
import {Flock, Wander, Separation, Alignment, Cohesion} from '@zakkster/lite-steer';
|
|
173
173
|
import {BmFont} from '@zakkster/lite-bmfont';
|
|
@@ -973,7 +973,7 @@ export const Recipes = {
|
|
|
973
973
|
|
|
974
974
|
function addDamage(x, y, value) {
|
|
975
975
|
numbers.push({
|
|
976
|
-
id:
|
|
976
|
+
id: liteId(), x, y, value: String(value),
|
|
977
977
|
startY: y, t: 0, life: 1.2, alpha: 1,
|
|
978
978
|
});
|
|
979
979
|
score += value;
|
package/README.md
CHANGED
|
@@ -418,7 +418,7 @@ hud.update(dt);
|
|
|
418
418
|
console.log(hud.getScore()); // cumulative
|
|
419
419
|
```
|
|
420
420
|
|
|
421
|
-
**Composes:** `BmFont` + `easeOutCubic` + `easeInOutCubic` + `
|
|
421
|
+
**Composes:** `BmFont` + `easeOutCubic` + `easeInOutCubic` + `liteId()` + `Random`
|
|
422
422
|
|
|
423
423
|
</details>
|
|
424
424
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zakkster/lite-tools",
|
|
3
3
|
"author": "Zahary Shinikchiev <shinikchiev@yahoo.com>",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.5",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "The standard library for high-performance web presentation — 45+ micro-libraries, 24 recipes, zero-GC, deterministic, tree-shakeable.",
|
|
7
7
|
"type": "module",
|