@zakkster/lite-tools 2.0.6 → 2.0.7
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 +2 -2
- package/LiteEngine.js +3 -3
- package/README.md +1 -1
- package/package.json +1 -1
package/LiteEngine.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ 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
|
|
|
112
112
|
// Game layer
|
|
113
|
-
export {
|
|
113
|
+
export { BitmapFont } from '@zakkster/lite-bmfont';
|
|
114
114
|
export { InputPoller } from '@zakkster/lite-gamepad';
|
|
115
115
|
export { CinematicCamera } from '@zakkster/lite-camera';
|
|
116
116
|
export { SpatialHash } from '@zakkster/lite-spatial';
|
|
@@ -145,7 +145,7 @@ import type {Viewport} from 'lite-viewport';
|
|
|
145
145
|
import type {FSM} from 'lite-states';
|
|
146
146
|
import type {FPSMeter} from 'lite-fps-meter';
|
|
147
147
|
import type {PointerTracker} from 'lite-pointer-tracker';
|
|
148
|
-
import type {
|
|
148
|
+
import type {BitmapFont} from '@zakkster/lite-bmfont';
|
|
149
149
|
import type {CinematicCamera} from '@zakkster/lite-camera';
|
|
150
150
|
import type {SpatialHash} from '@zakkster/lite-spatial';
|
|
151
151
|
import type {EmberEngine} from '@zakkster/lite-embers';
|
package/LiteEngine.js
CHANGED
|
@@ -111,7 +111,7 @@ export {
|
|
|
111
111
|
}from '@zakkster/lite-steer';
|
|
112
112
|
|
|
113
113
|
// Game layer
|
|
114
|
-
export {
|
|
114
|
+
export {BitmapFont} from '@zakkster/lite-bmfont';
|
|
115
115
|
export {InputPoller} from '@zakkster/lite-gamepad';
|
|
116
116
|
export {CinematicCamera} from '@zakkster/lite-camera';
|
|
117
117
|
export {SpatialHash} from '@zakkster/lite-spatial';
|
|
@@ -170,7 +170,7 @@ import {confetti as confettiFn} from '@zakkster/lite-confetti';
|
|
|
170
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
|
-
import {
|
|
173
|
+
import {BitmapFont} from '@zakkster/lite-bmfont';
|
|
174
174
|
import {InputPoller} from '@zakkster/lite-gamepad';
|
|
175
175
|
import {CinematicCamera} from '@zakkster/lite-camera';
|
|
176
176
|
import {SpatialHash} from '@zakkster/lite-spatial';
|
|
@@ -967,7 +967,7 @@ export const Recipes = {
|
|
|
967
967
|
retroArcadeText(ctx, fontImage, fontData, options = {}) {
|
|
968
968
|
const {seed = Date.now(), maxNumbers = 30} = options;
|
|
969
969
|
const rng = new Random(seed);
|
|
970
|
-
const font = new
|
|
970
|
+
const font = new BitmapFont(fontImage, fontData);
|
|
971
971
|
const numbers = [];
|
|
972
972
|
let score = 0;
|
|
973
973
|
|
package/README.md
CHANGED
|
@@ -418,7 +418,7 @@ hud.update(dt);
|
|
|
418
418
|
console.log(hud.getScore()); // cumulative
|
|
419
419
|
```
|
|
420
420
|
|
|
421
|
-
**Composes:** `
|
|
421
|
+
**Composes:** `BitmapFont` + `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.7",
|
|
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",
|