Skip to content

Commit af68fbc

Browse files
committed
One changeset per thing a user of the library would notice
Five described work on the documentation and the repository - the interactive examples, the recordings, the reference pages, the constructor pages, the parity probe. None of them changes the jar, so none of them belongs in the release notes of the jar. They are gone. The rest are split. Two of them carried four or five changes each and ran to forty lines; anybody reading the notes to find out whether their program still works had to read a paragraph about the display band to find the one about transparency. Each is now one change, three to nine lines, most of them opening with what it does and following with what it used to do instead.
1 parent ab981b6 commit af68fbc

26 files changed

Lines changed: 157 additions & 302 deletions

.changeset/a-probe-that-runs-twice.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

.changeset/bubble-anchor.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ type: patch
44

55
Speech and thought bubbles hang off the sprite's hitbox.
66

7-
They were placed from the size of the costume, at nine tenths of its width and
8-
eleven tenths of its height. A costume is usually drawn into a canvas bigger than
9-
what is painted on it — a standing pose in a canvas tall enough to also hold a
10-
jumping one — so the bubble floated up and to the right of the sprite it belonged
11-
to, with its tail pointing at nothing. It now sits on the top right corner of the
12-
hitbox, which is the sprite as it looks.
13-
14-
For the built-in slime, whose painted pixels fill 88 by 62 of a 128 by 128
15-
costume, that moves the bubble 14 pixels left and 72 pixels down, onto its
16-
shoulder.
7+
They were placed from the size of the costume, which is usually a canvas bigger
8+
than what is painted on it, so the bubble floated up and to the right of its
9+
sprite with its tail pointing at nothing. It now sits on the top right corner of
10+
the hitbox. For the built-in slime that moves it 14 pixels left and 72 down, onto
11+
its shoulder.

.changeset/builtin-names-everywhere.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

.changeset/builtin-names.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
type: minor
3+
---
4+
5+
A built-in sprite name works everywhere a picture is named.
6+
7+
`new Sprite("player", "slimeGreen")` threw `Could not load image: slimeGreen`:
8+
the constructor took a path where `addCostume()` took either. It now takes
9+
either, as do `Stage.setCursor`, `Window.useSplashLogo` and
10+
`Sprite.addCostumes`. A string with a file extension is still a path.

.changeset/change-position-by-numbers.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

.changeset/change-position.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
type: minor
3+
---
4+
5+
`changePosition` takes two numbers as well as a vector.
6+
7+
Moving by an amount worked only when the amount was already a `Vector2`, though
8+
`setPosition` has taken two numbers all along.

.changeset/colour-prints.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
type: patch
3+
---
4+
5+
A `Color` says which colour it is.
6+
7+
Printing one gave `org.openpatch.scratch.Color@35432107`, which is the first
8+
thing anyone tries when a tint looks wrong. It now reads
9+
`Color[r=255.0, g=128.0, b=0.0]`, and two colours with the same channels are
10+
equal.

.changeset/constructor-pages.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

.changeset/count-is-an-int.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
type: patch
3+
---
4+
5+
`Stage.count` returns an `int`.
6+
7+
It returned the `long` a `Stream` happened to hand back, so
8+
`int coins = myStage.count(Coin.class)` did not compile.

.changeset/ghost-effect.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
type: minor
3+
---
4+
5+
Transparency is the Scratch ghost effect.
6+
7+
It ran from 0 to 255, where 0 was invisible and 255 the solid sprite you start
8+
with — upside down and on the wrong scale next to the `set [ghost v] effect to`
9+
shown beside it. It now runs 0 to 100, 0 solid and 100 invisible, and a value
10+
outside that is pinned rather than wrapped.
11+
12+
`mySprite.setTransparency(50)` used to be nearly invisible; it is now half
13+
see-through.

0 commit comments

Comments
 (0)