Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/core-blend-space.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spryte-highp-source.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spryte-shader-set-same.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spryte-source-switch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spryte-sprite-user.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spryte-straight-data.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spryte-target-feedback.md

This file was deleted.

4 changes: 2 additions & 2 deletions bench/renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"pixi.js": "^8.22.0"
},
"dependencies": {
"@debuffjp/core": "0.33.2",
"spryte": "0.15.0"
"@debuffjp/core": "0.34.0",
"spryte": "0.16.0"
}
}
4 changes: 4 additions & 0 deletions packages/assets/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @debuffjp/assets

## 0.34.0

No changes in this release.

## 0.33.2

No changes in this release.
Expand Down
2 changes: 1 addition & 1 deletion packages/assets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@debuffjp/assets",
"version": "0.33.2",
"version": "0.34.0",
"description": "Manifest-driven asset loader with preload groups for debuff",
"keywords": [
"game",
Expand Down
4 changes: 4 additions & 0 deletions packages/audio/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @debuffjp/audio

## 0.34.0

No changes in this release.

## 0.33.2

No changes in this release.
Expand Down
2 changes: 1 addition & 1 deletion packages/audio/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@debuffjp/audio",
"version": "0.33.2",
"version": "0.34.0",
"description": "Web Audio facade with buses, autoplay unlock and a tiny synth for debuff",
"keywords": [
"game",
Expand Down
16 changes: 16 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @debuffjp/core

## 0.34.0

### Minor Changes

- 8784a2c: `GameOptions.blendSpace` passes spryte's `blendSpace` to the renderer, so a debuff game can turn on linear-light blending with `new Game({ ..., blendSpace: "linear" })`. Before this, `Game` created the renderer with only `backend` and `smooth`. Reported in #112.

### Patch Changes

- Updated dependencies [8784a2c]
- Updated dependencies [8784a2c]
- Updated dependencies [8784a2c]
- Updated dependencies [8784a2c]
- Updated dependencies [8784a2c]
- Updated dependencies [bed271b]
- spryte@0.16.0

## 0.33.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@debuffjp/core",
"version": "0.33.2",
"version": "0.34.0",
"description": "Game loop, fixed-step clock, scenes, camera, sprites and typed creative parameters for debuff",
"keywords": [
"game",
Expand Down Expand Up @@ -51,6 +51,6 @@
"access": "public"
},
"dependencies": {
"spryte": "0.15.0"
"spryte": "0.16.0"
}
}
6 changes: 6 additions & 0 deletions packages/dev/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @debuffjp/dev

## 0.34.0

### Patch Changes

- @debuffjp/share@0.34.0

## 0.33.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/dev/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@debuffjp/dev",
"version": "0.33.2",
"version": "0.34.0",
"description": "Dev-only inspection hooks for debuff games, for tools and AI agents",
"keywords": [
"game",
Expand Down Expand Up @@ -47,7 +47,7 @@
"access": "public"
},
"dependencies": {
"@debuffjp/share": "0.33.2",
"@debuffjp/share": "0.34.0",
"myaku": "0.5.1"
}
}
4 changes: 4 additions & 0 deletions packages/input/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @debuffjp/input

## 0.34.0

No changes in this release.

## 0.33.2

No changes in this release.
Expand Down
2 changes: 1 addition & 1 deletion packages/input/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@debuffjp/input",
"version": "0.33.2",
"version": "0.34.0",
"description": "Action-based keyboard, pointer and gamepad input for debuff",
"keywords": [
"game",
Expand Down
4 changes: 4 additions & 0 deletions packages/juice/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @debuffjp/juice

## 0.34.0

No changes in this release.

## 0.33.2

No changes in this release.
Expand Down
2 changes: 1 addition & 1 deletion packages/juice/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@debuffjp/juice",
"version": "0.33.2",
"version": "0.34.0",
"description": "Tweens, easing, particles and game-feel effects for debuff",
"keywords": [
"game",
Expand Down
4 changes: 4 additions & 0 deletions packages/share/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @debuffjp/share

## 0.34.0

No changes in this release.

## 0.33.2

No changes in this release.
Expand Down
2 changes: 1 addition & 1 deletion packages/share/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@debuffjp/share",
"version": "0.33.2",
"version": "0.34.0",
"description": "Clips, share sheets and challenge links for debuff games",
"keywords": [
"game",
Expand Down
14 changes: 14 additions & 0 deletions packages/spryte/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# spryte

## 0.16.0

### Minor Changes

- 8784a2c: `source(uv)` in custom shaders now takes a `highp` uv, as do spryte's built-in effect and blur. Shaders run under `precision mediump float`, so before this a texture read through `source()` was addressed at fp16 on many mobile GPUs and sampled the wrong texels in images past about 1024 px, whatever precision the effect declared. The documented signature is now `vec4 effect(vec4 color, highp vec2 uv)`; an unqualified `vec2 uv` still compiles but stays mediump. Reported in #110.
- 8784a2c: `Shader.set()` with the value a uniform already has no longer ends the batch. Numbers and arrays compare by value; a texture, or the same array object passed again (its contents may have changed), still flushes. The Shader docs now say that a shader switch and a uniform change each end a batch, and show the pattern for per-sprite values: one `withShader` around the whole walk. Reported in #109.
- 8784a2c: `source()` in custom shaders picks the batch's texture with a `switch` instead of a chain of eight `if`s. A 16-tap effect over eight textures took about 35% less frame time on an RTX 5060 (7.1 ms to 4.6 ms median for 32 full-HD layers), with the same pixels. One-tap effects, including spryte's default program, showed no measurable change. Reported in #111.
- 8784a2c: `draw.sprite` takes `user` and `user2` options: two floats a custom shader reads as `user()` and `user2()`, as `draw.sprites` copies already could through `each`. The sprite stays in the batch, so a per-sprite parameter (a share, a variant, a flag) no longer has to be packed into the tint. Sprites that set neither read 0. The values travel in a separate buffer that is uploaded only for a batch that uses them, so draws without a custom shader don't change. `spriteOptions()` includes the two new fields. Reported in #113.
- 8784a2c: `asData(image, { premultiply: false })` uploads an image with straight alpha, under either blend space, so data packed into RGBA (timings, indices) survives where alpha is below 255. Other images still upload premultiplied. It works for an `<img>`; a canvas already holds premultiplied pixels, and an `ImageBitmap` keeps the `premultiplyAlpha` it was made with. Reported in #112.

### Patch Changes

- bed271b: A render target refilled with `draw.into()` after it was drawn stays filled. Its texture could still be bound to a texture unit from the earlier draw (or from its own creation), so the next draw into it was a feedback loop: WebGL rejected it and logged `GL_INVALID_OPERATION ... Feedback loop formed between Framebuffer and active Texture`, and the target stayed blank. Switching to a target now rebinds the 8 sprite units first. The same loop hit frames of shapes only under `blendSpace: "linear"`, whose sRGB framebuffer texture stayed bound after `end()` presented it; it no longer does. Reported in #118.

## 0.15.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/spryte/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spryte",
"version": "0.15.0",
"version": "0.16.0",
"description": "Blazing fast 2D renderer for the web: 2-4x faster than the most popular one, at about a seventh of its size. Verified in an open benchmark.",
"keywords": [
"2d",
Expand Down
7 changes: 7 additions & 0 deletions packages/tilemap/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @debuffjp/tilemap

## 0.34.0

### Patch Changes

- Updated dependencies [8784a2c]
- @debuffjp/core@0.34.0

## 0.33.2

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/tilemap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@debuffjp/tilemap",
"version": "0.33.2",
"version": "0.34.0",
"description": "Tilemaps for debuff: culled batched rendering, tile collision, Tiled and LDtk import",
"keywords": [
"game",
Expand Down Expand Up @@ -43,10 +43,10 @@
"build": "tsc -b"
},
"peerDependencies": {
"@debuffjp/core": "0.33.2"
"@debuffjp/core": "0.34.0"
},
"devDependencies": {
"@debuffjp/core": "0.33.2"
"@debuffjp/core": "0.34.0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 4 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @debuffjp/ui

## 0.34.0

No changes in this release.

## 0.33.2

No changes in this release.
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@debuffjp/ui",
"version": "0.33.2",
"version": "0.34.0",
"description": "Screen transitions, menus and panels for debuff",
"keywords": [
"game",
Expand Down
12 changes: 6 additions & 6 deletions templates/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"test": "debuff test && debuff scenario"
},
"dependencies": {
"@debuffjp/audio": "0.33.2",
"@debuffjp/core": "0.33.2",
"@debuffjp/input": "0.33.2",
"@debuffjp/juice": "0.33.2"
"@debuffjp/audio": "0.34.0",
"@debuffjp/core": "0.34.0",
"@debuffjp/input": "0.34.0",
"@debuffjp/juice": "0.34.0"
},
"devDependencies": {
"@debuffjp/cli": "0.33.2",
"@debuffjp/cli": "0.34.0",
"typescript": "^7.0.2",
"@debuffjp/dev": "0.33.2",
"@debuffjp/dev": "0.34.0",
"keiko": "0.9.0"
}
}
16 changes: 8 additions & 8 deletions templates/isometric/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
"test": "debuff test && debuff scenario"
},
"dependencies": {
"@debuffjp/assets": "0.33.2",
"@debuffjp/audio": "0.33.2",
"@debuffjp/core": "0.33.2",
"@debuffjp/input": "0.33.2",
"@debuffjp/juice": "0.33.2",
"@debuffjp/tilemap": "0.33.2"
"@debuffjp/assets": "0.34.0",
"@debuffjp/audio": "0.34.0",
"@debuffjp/core": "0.34.0",
"@debuffjp/input": "0.34.0",
"@debuffjp/juice": "0.34.0",
"@debuffjp/tilemap": "0.34.0"
},
"devDependencies": {
"@debuffjp/cli": "0.33.2",
"@debuffjp/cli": "0.34.0",
"typescript": "^7.0.2",
"@debuffjp/dev": "0.33.2",
"@debuffjp/dev": "0.34.0",
"keiko": "0.9.0"
}
}
18 changes: 9 additions & 9 deletions templates/mossfell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
"test": "debuff test && debuff scenario"
},
"dependencies": {
"@debuffjp/assets": "0.33.2",
"@debuffjp/audio": "0.33.2",
"@debuffjp/core": "0.33.2",
"@debuffjp/input": "0.33.2",
"@debuffjp/juice": "0.33.2",
"@debuffjp/tilemap": "0.33.2",
"@debuffjp/ui": "0.33.2"
"@debuffjp/assets": "0.34.0",
"@debuffjp/audio": "0.34.0",
"@debuffjp/core": "0.34.0",
"@debuffjp/input": "0.34.0",
"@debuffjp/juice": "0.34.0",
"@debuffjp/tilemap": "0.34.0",
"@debuffjp/ui": "0.34.0"
},
"devDependencies": {
"@debuffjp/cli": "0.33.2",
"@debuffjp/cli": "0.34.0",
"typescript": "^7.0.2",
"@debuffjp/dev": "0.33.2",
"@debuffjp/dev": "0.34.0",
"keiko": "0.9.0"
}
}
18 changes: 9 additions & 9 deletions templates/platformer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
"test": "debuff test && debuff scenario"
},
"dependencies": {
"@debuffjp/assets": "0.33.2",
"@debuffjp/audio": "0.33.2",
"@debuffjp/core": "0.33.2",
"@debuffjp/input": "0.33.2",
"@debuffjp/juice": "0.33.2",
"@debuffjp/tilemap": "0.33.2",
"@debuffjp/ui": "0.33.2"
"@debuffjp/assets": "0.34.0",
"@debuffjp/audio": "0.34.0",
"@debuffjp/core": "0.34.0",
"@debuffjp/input": "0.34.0",
"@debuffjp/juice": "0.34.0",
"@debuffjp/tilemap": "0.34.0",
"@debuffjp/ui": "0.34.0"
},
"devDependencies": {
"@debuffjp/cli": "0.33.2",
"@debuffjp/cli": "0.34.0",
"typescript": "^7.0.2",
"@debuffjp/dev": "0.33.2",
"@debuffjp/dev": "0.34.0",
"keiko": "0.9.0"
}
}
Loading
Loading