From 33ef8c3e698c8aea8f0e2f7ef6fc25ea02a723e1 Mon Sep 17 00:00:00 2001 From: mikebarkmin <2592379+mikebarkmin@users.noreply.github.com> Date: Tue, 13 Oct 2026 06:12:56 +0000 Subject: [PATCH] chore: release v6.0.0 --- .changeset/pen-sprites.md | 7 ------- .changeset/preview.md | 10 ---------- .changeset/tiled-spawn.md | 9 --------- .changeset/window-first.md | 17 ---------------- CHANGELOG.md | 41 +++++++++++++++++++++++++++++++++++++- pom.xml | 2 +- 6 files changed, 41 insertions(+), 45 deletions(-) delete mode 100644 .changeset/pen-sprites.md delete mode 100644 .changeset/preview.md delete mode 100644 .changeset/tiled-spawn.md delete mode 100644 .changeset/window-first.md diff --git a/.changeset/pen-sprites.md b/.changeset/pen-sprites.md deleted file mode 100644 index f9bb3454..00000000 --- a/.changeset/pen-sprites.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -type: patch ---- - -A sprite that only draws with its pen no longer shows the red "?" marker for a -missing costume. The marker (and its warning) now appears only for a sprite that -stays without a costume, a hitbox and a used pen for a second. diff --git a/.changeset/preview.md b/.changeset/preview.md deleted file mode 100644 index eb64c1b9..00000000 --- a/.changeset/preview.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -type: minor ---- - -Editors can show a preview of a stage: started with -`-Dscratch4j.preview=`, a program draws the first frame of its stage, -saves it as `frame.png` with the sprites described in `stage.json`, and ends. -`-Dscratch4j.preview.stage=` previews another stage, and -`-Dscratch4j.preview.omit=` leaves the sprites in those fields out of -the picture. diff --git a/.changeset/tiled-spawn.md b/.changeset/tiled-spawn.md deleted file mode 100644 index e0cc0aba..00000000 --- a/.changeset/tiled-spawn.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -type: minor ---- - -`TiledMap.spawn("Objects")` creates a sprite for each object of a layer whose -type (Tiled's "class") is the name of a sprite class, puts it where the object -is and adds it to the stage. Objects drawn as areas give their sprite that area -as its hitbox. The sprite class needs a constructor taking the `MapObject`, one -taking `(double x, double y)`, or one without parameters. diff --git a/.changeset/window-first.md b/.changeset/window-first.md deleted file mode 100644 index 9e24956a..00000000 --- a/.changeset/window-first.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -type: major ---- - -💥 BREAKING CHANGE: A stage no longer opens the window itself. Create the window -first and put the stage into it: - -```java -Window myWindow = new Window(480, 360); -myWindow.setStage(new MyStage()); -``` - -`new Stage(width, height)` and `new Stage(width, height, assets)` are gone: a -stage is always as big as the window it is shown in, so the size (and the assets -folder) go to `new Window(...)`. Remove `super(width, height)` from your stages. -A stage made before there is a window says how to fix it, and a window nobody -put a stage into says so too. diff --git a/CHANGELOG.md b/CHANGELOG.md index f2c843bb..ec24f951 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,48 @@ --- name: Changelog -index: 76 +index: 77 lang: en --- +## 6.0.0 + + + +`TiledMap.spawn("Objects")` creates a sprite for each object of a layer whose +type (Tiled's "class") is the name of a sprite class, puts it where the object +is and adds it to the stage. Objects drawn as areas give their sprite that area +as its hitbox. The sprite class needs a constructor taking the `MapObject`, one +taking `(double x, double y)`, or one without parameters. + + +A sprite that only draws with its pen no longer shows the red "?" marker for a +missing costume. The marker (and its warning) now appears only for a sprite that +stays without a costume, a hitbox and a used pen for a second. + + +Editors can show a preview of a stage: started with +`-Dscratch4j.preview=`, a program draws the first frame of its stage, +saves it as `frame.png` with the sprites described in `stage.json`, and ends. +`-Dscratch4j.preview.stage=` previews another stage, and +`-Dscratch4j.preview.omit=` leaves the sprites in those fields out of +the picture. + + +💥 BREAKING CHANGE: A stage no longer opens the window itself. Create the window +first and put the stage into it: + +```java +Window myWindow = new Window(480, 360); +myWindow.setStage(new MyStage()); +``` + +`new Stage(width, height)` and `new Stage(width, height, assets)` are gone: a +stage is always as big as the window it is shown in, so the size (and the assets +folder) go to `new Window(...)`. Remove `super(width, height)` from your stages. +A stage made before there is a window says how to fix it, and a window nobody +put a stage into says so too. + + ## 5.8.0 Add the Scratch for Java cat as built-in sprites. Its animations - idle, walk, crouch, jump, fall, land, punch, hurt, ko, cheer and climb - load by name, for example `addAnimation("walk", "cat_walk_%d", 6)`. Coffee beans, a bug, a goal mug and hearts for a platformer come with it. The new Cat Platformer example shows them all in a game. diff --git a/pom.xml b/pom.xml index d97c95b3..d4a7aaa7 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.openpatch scratch - 5.8.0 + 6.0.0 jar Scratch for Java