1681-engine 0.6.0 → 0.6.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/CHANGELOG.md +11 -0
- package/dist/1681-engine.js +547 -541
- package/dist/core/Camera.js +10 -0
- package/dist/core/ObjectFactory.js +23 -21
- package/dist/core/PixelGrid.js +47 -0
- package/dist/core/SharpText.js +72 -0
- package/dist/core/Stage.js +48 -31
- package/dist/core/gridPlacement.js +14 -0
- package/dist/types/core/Camera.d.ts +8 -0
- package/dist/types/core/Camera.d.ts.map +1 -1
- package/dist/types/core/ObjectFactory.d.ts.map +1 -1
- package/dist/types/core/PixelGrid.d.ts +30 -0
- package/dist/types/core/PixelGrid.d.ts.map +1 -0
- package/dist/types/core/SharpText.d.ts +32 -0
- package/dist/types/core/SharpText.d.ts.map +1 -0
- package/dist/types/core/Stage.d.ts +14 -0
- package/dist/types/core/Stage.d.ts.map +1 -1
- package/dist/types/core/gridPlacement.d.ts +20 -0
- package/dist/types/core/gridPlacement.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this package are written here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
4
4
|
and versions follow [Semantic Versioning](https://semver.org/); before 1.0 a minor version may break the API.
|
|
5
5
|
|
|
6
|
+
## 0.6.1
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- **Pixel-perfect world**: `Stage.pixelPerfect` draws the world layer into a texture of one texel per world pixel,
|
|
11
|
+
its origin on a whole world pixel, and shows it at the camera's zoom moved by the scroll's fraction, so turned,
|
|
12
|
+
scaled and between-pixels art lands on one grid while the camera still glides by backing pixels (`PixelGrid`,
|
|
13
|
+
`gridPlacement`). Text made by `add.text`/`add.label` is lifted onto a layer at screen resolution over the world,
|
|
14
|
+
following its container's transform, visibility and alpha (`SharpText`; `Stage.keepSharp` for other text).
|
|
15
|
+
`Camera.snapRoot` lands an object's root on whole world pixels while it is on, and on `snap` otherwise.
|
|
16
|
+
|
|
6
17
|
## 0.6.0
|
|
7
18
|
|
|
8
19
|
### Added
|