@footgun/cobalt 0.1.0 → 0.2.0
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 +3 -0
- package/LICENSE +1 -1
- package/README.md +8 -2
- package/bundle.js +15 -15
- package/cobaltx2.png +0 -0
- package/esbuild.js +0 -2
- package/examples/01-primitives/deps.js +1 -1
- package/examples/01-primitives/index.html +1 -127
- package/examples/01-primitives/main.js +86 -0
- package/examples/01-primitives/system-renderer.js +71 -23
- package/package.json +7 -4
- package/src/light/public-api.js +1 -1
- package/src/overlay/overlay.js +1 -1
- package/src/primitives/primitives.js +12 -20
- package/src/primitives/public-api.js +185 -116
- package/src/sprite/spritesheet.js +2 -1
- package/cobalt2.jpeg +0 -0
- package/examples/01-primitives/component-animation.js +0 -8
- package/examples/01-primitives/component-transform.js +0 -13
- package/examples/01-primitives/entity-sprite.js +0 -47
- package/src/deps.js +0 -3
- /package/examples/01-primitives/{Game.js → Global.js} +0 -0
package/CHANGELOG.md
ADDED
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Cobalt
|
|
2
2
|
|
|
3
|
-

|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
A 2D WebGpu renderer.
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
## Goals
|
|
@@ -15,4 +15,10 @@ An opinionated 2D node graph based on WebGpu, minimizing CPU usage and maximizin
|
|
|
15
15
|
* back-to-front z-indexing
|
|
16
16
|
|
|
17
17
|
|
|
18
|
+
## install
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install @footgun/cobalt
|
|
22
|
+
```
|
|
23
|
+
|
|
18
24
|
Runnable demos are available in `examples/`.
|