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
13 changes: 0 additions & 13 deletions .changeset/portable-save-data.md

This file was deleted.

20 changes: 19 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
---
name: Changelog
index: 81
index: 82
lang: en
---

## 6.2.0



Add `SaveData<T>` for game progress and named save slots. Desktop games store
public data fields as JSON in their user-data directory; the online IDE uses
IndexedDB through the same Java API. Missing slots use caller-supplied defaults,
while corrupt data and failed writes report errors without silently resetting
progress. Writes commit before the game continues.

The Coin Quest demo uses built-in assets and three slots, with controls to save,
load and start a fresh round. Its score and sprite positions survive a desktop
restart or browser reload.

The demo launcher checks compilation before running an example, so newly added
demos work even when older compiled classes are already present.


## 6.1.3


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.1.3",
"browserVersion": "6.1.3-browser.2",
"libraryVersion": "6.2.0",
"browserVersion": "6.2.0-browser.1",
"methods": [
{
"id": "AnimatedSprite/addAnimation(String,String,int)",
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.1.3",
"browserVersion": "6.1.3-browser.2",
"libraryVersion": "6.2.0",
"browserVersion": "6.2.0-browser.1",
"license": "CC0",
"images": [
{
Expand Down
74 changes: 37 additions & 37 deletions catalogs/examples.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"schemaVersion": 1,
"libraryVersion": "6.1.3",
"browserVersion": "6.1.3-browser.2",
"libraryVersion": "6.2.0",
"browserVersion": "6.2.0-browser.1",
"examples": [
{
"id": "demo/cat",
"kind": "demo",
"source": "src/examples/java/demos/cat",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand All @@ -25,7 +25,7 @@
"id": "demo/catPlatformer",
"kind": "demo",
"source": "src/examples/java/demos/catPlatformer",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [
"cat",
Expand Down Expand Up @@ -75,7 +75,7 @@
"id": "demo/clock",
"kind": "demo",
"source": "src/examples/java/demos/clock",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand Down Expand Up @@ -125,7 +125,7 @@
"id": "demo/coinCollector",
"kind": "demo",
"source": "src/examples/java/demos/coinCollector",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [
"platformer",
Expand Down Expand Up @@ -154,7 +154,7 @@
"id": "demo/donutIO",
"kind": "demo",
"source": "src/examples/java/demos/donutIO",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand Down Expand Up @@ -212,7 +212,7 @@
"id": "demo/glide",
"kind": "demo",
"source": "src/examples/java/demos/glide",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [
"platformer",
Expand All @@ -229,7 +229,7 @@
"id": "demo/pipes",
"kind": "demo",
"source": "src/examples/java/demos/pipes",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand Down Expand Up @@ -259,7 +259,7 @@
"id": "demo/quiz",
"kind": "demo",
"source": "src/examples/java/demos/quiz",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [
"platformer",
Expand All @@ -276,7 +276,7 @@
"id": "demo/rainbowVine",
"kind": "demo",
"source": "src/examples/java/demos/rainbowVine",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand All @@ -290,7 +290,7 @@
"id": "demo/randomDot",
"kind": "demo",
"source": "src/examples/java/demos/randomDot",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand All @@ -304,7 +304,7 @@
"id": "demo/robot",
"kind": "demo",
"source": "src/examples/java/demos/robot",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand All @@ -326,7 +326,7 @@
"id": "demo/saveSlots",
"kind": "demo",
"source": "src/examples/java/demos/saveSlots",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [
"platformer",
Expand Down Expand Up @@ -355,7 +355,7 @@
"id": "demo/saving",
"kind": "demo",
"source": "src/examples/java/demos/saving",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand All @@ -373,7 +373,7 @@
"id": "demo/sensing",
"kind": "demo",
"source": "src/examples/java/demos/sensing",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand All @@ -395,7 +395,7 @@
"id": "demo/shader",
"kind": "demo",
"source": "src/examples/java/demos/shader",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand Down Expand Up @@ -465,7 +465,7 @@
"id": "demo/shakespeare",
"kind": "demo",
"source": "src/examples/java/demos/shakespeare",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand All @@ -491,7 +491,7 @@
"id": "demo/smartRocket",
"kind": "demo",
"source": "src/examples/java/demos/smartRocket",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand Down Expand Up @@ -533,7 +533,7 @@
"id": "demo/stressTest",
"kind": "demo",
"source": "src/examples/java/demos/stressTest",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand Down Expand Up @@ -931,7 +931,7 @@
"id": "demo/tiled",
"kind": "demo",
"source": "src/examples/java/demos/tiled",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand Down Expand Up @@ -1041,7 +1041,7 @@
"id": "demo/timedDot",
"kind": "demo",
"source": "src/examples/java/demos/timedDot",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand All @@ -1055,7 +1055,7 @@
"id": "demo/timer",
"kind": "demo",
"source": "src/examples/java/demos/timer",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand All @@ -1069,7 +1069,7 @@
"id": "demo/ui",
"kind": "demo",
"source": "src/examples/java/demos/ui",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand Down Expand Up @@ -1099,7 +1099,7 @@
"id": "demo/volume",
"kind": "demo",
"source": "src/examples/java/demos/volume",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [
"platformer",
Expand All @@ -1116,7 +1116,7 @@
"id": "tutorial/Halloween",
"kind": "tutorial",
"source": "docs/archives/Halloween",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand Down Expand Up @@ -1218,7 +1218,7 @@
"id": "tutorial/bluej-starter",
"kind": "tutorial",
"source": "docs/archives/bluej-starter",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand Down Expand Up @@ -1252,7 +1252,7 @@
"id": "tutorial/bouncy-hedgehog",
"kind": "tutorial",
"source": "docs/archives/bouncy-hedgehog",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand Down Expand Up @@ -1302,7 +1302,7 @@
"id": "tutorial/bouncy-hedgehog-100",
"kind": "tutorial",
"source": "docs/archives/bouncy-hedgehog-100",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand Down Expand Up @@ -1352,7 +1352,7 @@
"id": "tutorial/cat",
"kind": "tutorial",
"source": "docs/archives/cat",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand All @@ -1378,7 +1378,7 @@
"id": "tutorial/catch-the-coins-100",
"kind": "tutorial",
"source": "docs/archives/catch-the-coins-100",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [
"platformer",
Expand Down Expand Up @@ -1415,7 +1415,7 @@
"id": "tutorial/dodge-the-rocks-100",
"kind": "tutorial",
"source": "docs/archives/dodge-the-rocks-100",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [
"platformer",
Expand Down Expand Up @@ -1460,7 +1460,7 @@
"id": "tutorial/getting-started-100",
"kind": "tutorial",
"source": "docs/archives/getting-started-100",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [
"jumper",
Expand Down Expand Up @@ -1493,7 +1493,7 @@
"id": "tutorial/guess-the-number-100",
"kind": "tutorial",
"source": "docs/archives/guess-the-number-100",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [
"platformer",
Expand Down Expand Up @@ -1522,7 +1522,7 @@
"id": "tutorial/make-it-walk-100",
"kind": "tutorial",
"source": "docs/archives/make-it-walk-100",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [
"platformer",
Expand Down Expand Up @@ -1555,7 +1555,7 @@
"id": "tutorial/red-light-green-light-100",
"kind": "tutorial",
"source": "docs/archives/red-light-green-light-100",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [
"platformer",
Expand Down Expand Up @@ -1592,7 +1592,7 @@
"id": "tutorial/vs-code-starter",
"kind": "tutorial",
"source": "docs/archives/vs-code-starter",
"libraryVersion": "6.1.3",
"libraryVersion": "6.2.0",
"flavour": "standard",
"requiredSheets": [],
"files": [
Expand Down
2 changes: 1 addition & 1 deletion compatibility/browser-compatibility.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Browser compatibility

Desktop library: **6.1.3**. Browser implementation: **6.1.3-browser.2**.
Desktop library: **6.2.0**. Browser implementation: **6.2.0-browser.1**.

Generated by `scripts/browser-compatibility.py`. Machine-readable: [contract.json](contract.json).

Expand Down
Loading
Loading