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
9 changes: 0 additions & 9 deletions .changeset/gamepad-extension.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/lwjgl.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/smooth-pixel-art-letterbox.md

This file was deleted.

27 changes: 26 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,34 @@
---
name: Changelog
index: 86
index: 87
lang: en
---

## 7.0.0



Add the `scratch-gamepad` extension: controller support for up to four gamepads. `Gamepad` asks
anywhere for buttons, sticks (y up, as on the stage, with a dead zone), triggers and connections;
stages and sprites implementing `GamepadListener` are told about button presses, releases and
controllers connecting, at the same point of the tick as key events. Buttons are named in Xbox
positions (A, B, X, Y); controllers without a known layout are skipped and there is no rumble.


Smooth pixel art scales the window's letterbox to fit, like its camera zoom, instead of whole
numbers: with `Window.useSmoothPixelArt()` the stage fills the window at any size, while plain
`usePixelArt()` keeps stepping whole pixels.


Scratch for Java no longer runs on Processing. It draws with its own renderer on LWJGL (OpenGL 3.3, 4.1 on macOS), plays sound through OpenAL and needs no `java.desktop`. `run()` is called exactly 60 times per second of game time on every computer, and what a program sees (collisions, colour sensing, text layout) no longer depends on the graphics card or the screen.

The extensions are jars of their own: `scratch-tiled`, `scratch-save`, `scratch-recorder` and `scratch-drawing`, with short packages (`org.openpatch.scratch.tiled`, …). Camera, shaders, sound, pixels and sorting are part of `org.openpatch.scratch`. The `-all` jar still contains everything, and a public extension API lets others write extensions.

The API was cleaned up for learners, and programs written for 6.x need changes: time is in seconds everywhere (`say("Hi", 2)`, `waitSeconds(0.5)`, `timer.every(0.5)`), animations and nine-slicing are on every sprite (`AnimatedSprite` and `UISprite` are gone), `createClone()` replaces `clone()`, layers replace the UI flags, `Color` cannot be changed, the colour effect and the tint are separate, and shaders have a new, shorter format. The page "Moving from 6.x to 7.0" lists every change, and `scripts/migrate-7.py` makes the mechanical ones.

BlueJ is no longer supported; Scratch for Java Studio is the IDE.


## 6.5.0


Expand Down
2 changes: 1 addition & 1 deletion all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.openpatch</groupId>
<artifactId>scratch-parent</artifactId>
<version>6.5.0</version>
<version>7.0.0</version>
</parent>

<!--
Expand Down
4 changes: 2 additions & 2 deletions catalogs/api.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"libraryVersion": "6.5.0",
"browserVersion": "6.5.0-browser.1",
"libraryVersion": "7.0.0",
"browserVersion": "7.0.0-browser.1",
"methods": [
{
"id": "Camera/changeX(double)",
Expand Down
4 changes: 2 additions & 2 deletions catalogs/assets.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"libraryVersion": "6.5.0",
"browserVersion": "6.5.0-browser.1",
"libraryVersion": "7.0.0",
"browserVersion": "7.0.0-browser.1",
"license": "CC0",
"images": [
{
Expand Down
Loading
Loading