Compare commits

...
Author SHA1 Message Date
waozi a0f8946692 Release Arcade 0.7.96 with the latest game releases 2026-10-27 20:48:00 +00:00
waozi fb5d8d0af8 Keep Arcade browser runtime files on one cache revision 2026-10-27 17:26:02 -03:00
waozi 37f11bfe0b Release Arcade 0.7.95 with Shovey 0.6.157
Pip's tips keep what he points at in view: his card moves under the top
bar when it would cover it, such as the home in level 1.
2026-10-27 17:11:36 -03:00
8 changed files with 110 additions and 53 deletions

No files matched your search

+9
View File
@@ -1,5 +1,14 @@
# Arcade changelog
## 0.7.96
- Shovey 0.6.157: Pip's tips keep what he points at in view: his card moves under the top bar when it would cover it, such as the home in level 1.
- Apfelwurm 0.2.4: Play on the whole page at wurm.waozi.xyz, without a title bar above the game.
## 0.7.95
- Shovey 0.6.157: Pip's tips keep what he points at in view: his card moves under the top bar when it would cover it, such as the home in level 1.
## 0.7.94
- The library's game covers download about four times faster.
+1 -1
View File
@@ -1 +1 @@
0.7.94
0.7.96
+6 -6
View File
@@ -13,8 +13,8 @@
"shovey": {
"id": "arcade.shovey",
"title": "Shovey",
"version": "0.6.156",
"sequence": 164,
"version": "0.6.157",
"sequence": 165,
"host_api": 12
},
"shovey-island": {
@@ -34,15 +34,15 @@
"arcade": {
"id": "inbe.arcade",
"title": "Arcade",
"version": "0.7.94",
"sequence": 173,
"version": "0.7.96",
"sequence": 175,
"host_api": 36
},
"wurm": {
"id": "xyz.waozi.wurm",
"title": "Apfelwurm",
"version": "0.2.2",
"sequence": 9,
"version": "0.2.4",
"sequence": 10,
"host_api": 12
}
}
+22
View File
@@ -40,6 +40,27 @@ def compress(path):
packed.write(path.read_bytes())
def version_assets(output, receipt):
"""Keep the runtime, its data and the verified collection on one cache key."""
page = output / 'index.html'
html = page.read_text()
if '__ARCADE_ASSET_REVISION__' not in html:
return
digest = hashlib.sha256()
for name in ('runtime.js', 'runtime.wasm', 'runtime.data', 'arcade.json', 'apps.zx'):
path = output / name
if path.is_file():
digest.update(name.encode() + b'\0')
digest.update(path.read_bytes())
revision = digest.hexdigest()
page.write_text(html.replace('__ARCADE_ASSET_REVISION__', revision))
source = subprocess.check_output(['git', 'rev-parse', 'HEAD'], cwd=ROOT, text=True).strip()
(output / 'build.json').write_text(json.dumps({
'source_revision': source, 'version': receipt['version'],
'assets_sha256': revision,
}, indent=2) + '\n')
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--bundle', type=Path, default=ROOT / 'build/node-apps/arcade.zx')
@@ -93,6 +114,7 @@ def main():
compress(output / 'apps.zx')
else:
print('No matching Apps controller beside the collection; it must pack its own')
version_assets(output, receipt)
print(f'{"Shovey" if args.shovey else "Arcade"} {args.version} for the browser in {output}')
+13 -6
View File
@@ -11,8 +11,8 @@
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="manifest" href="manifest.webmanifest">
<!-- The runtime downloads while the page fetches the collection's files. -->
<link rel="preload" href="runtime.js" as="script">
<link rel="preload" href="runtime.wasm" as="fetch" type="application/wasm" crossorigin>
<link rel="preload" href="runtime.js?v=__ARCADE_ASSET_REVISION__" as="script">
<link rel="preload" href="runtime.wasm?v=__ARCADE_ASSET_REVISION__" as="fetch" type="application/wasm" crossorigin>
<meta property="og:type" content="website">
<meta property="og:url" content="https://arcade.waozi.xyz/">
<meta property="og:title" content="Arcade">
@@ -44,6 +44,12 @@
(function () {
var loading = document.getElementById('loading');
var bar = loading.querySelector('.bar');
var assetRevision = '__ARCADE_ASSET_REVISION__';
function assetUrl(name) {
var url = new URL(name, document.baseURI);
url.searchParams.set('v', assetRevision);
return url.href;
}
function failed() { loading.classList.add('error'); }
// Arcade's Profile reports ready once the library is about to draw.
function watch() {
@@ -52,6 +58,7 @@
}
window.Module = {
canvas: document.getElementById('canvas'),
locateFile: assetUrl,
setStatus: function (text) {
var match = /\((\d+(?:\.\d+)?)\/(\d+)\)/.exec(text || '');
if (match) bar.style.width = Math.min(100, 100 * match[1] / match[2]) + '%';
@@ -63,13 +70,13 @@
// does not compress binary files. Browsers without DecompressionStream,
// or a missing .gz, take the plain file; null when neither exists.
function plain(name) {
return fetch(name).then(function (response) {
return fetch(assetUrl(name)).then(function (response) {
return response.ok ? response.arrayBuffer() : null;
});
}
function bundle(name) {
if (typeof DecompressionStream !== 'function') return plain(name);
return fetch(name + '.gz').then(function (response) {
return fetch(assetUrl(name + '.gz')).then(function (response) {
if (!response.ok) throw new Error(response.status);
return response.arrayBuffer();
}).then(function (packed) {
@@ -83,7 +90,7 @@
// The build receipt names the collection's digest and its trusted Apps
// library; Arcade's own copy of that library goes in beside it.
Promise.all([
fetch('arcade.json', { cache: 'no-cache' }).then(function (response) {
fetch(assetUrl('arcade.json'), { cache: 'no-cache' }).then(function (response) {
if (!response.ok) throw new Error(response.status);
return response.text();
}),
@@ -100,7 +107,7 @@
}
function start() {
var script = document.createElement('script');
script.src = 'runtime.js';
script.src = assetUrl('runtime.js');
script.onerror = failed;
document.body.appendChild(script);
watch();
+20 -1
View File
@@ -12,8 +12,16 @@ if (!site) throw new Error('Usage: node tests/web_site_test.mjs SITE_DIR');
const types = { '.html': 'text/html', '.js': 'text/javascript', '.wasm': 'application/wasm', '.json': 'application/json',
'.svg': 'image/svg+xml', '.png': 'image/png', '.jpg': 'image/jpeg', '.webmanifest': 'application/manifest+json' };
const server = createServer(async (request, response) => {
const path = normalize(decodeURIComponent(new URL(request.url, 'http://x').pathname)).replace(/^\/+/, '') || 'index.html';
const url = new URL(request.url, 'http://x');
const path = normalize(decodeURIComponent(url.pathname)).replace(/^\/+/, '') || 'index.html';
try {
// Model the previous runtime still cached under its unversioned URL.
// A new deployment must request its coherent runtime revision instead.
if (path === 'runtime.js' && !url.searchParams.has('v')) {
response.writeHead(200, { 'Content-Type': 'text/javascript', 'Cache-Control': 'public, max-age=14400' });
response.end('console.error("Stale cached Arcade runtime"); Module.onAbort();');
return;
}
const body = await readFile(join(site, path));
response.writeHead(200, { 'Content-Type': types[extname(path)] || 'application/octet-stream' });
response.end(body);
@@ -69,6 +77,17 @@ try {
if (!ready) await delay(250);
}
if (!ready && !failure) failure = 'the library never became ready';
if (ready) {
const resources = await command('Runtime.evaluate', {
expression: 'performance.getEntriesByType("resource").map(entry=>entry.name)', returnByValue: true });
const runtime = resources.result.value.map(name=>new URL(name)).filter(url=>
/\/(runtime\.(js|wasm|data)(\.gz)?|arcade\.json|apps\.zx(\.gz)?)$/.test(url.pathname));
const revisions = new Set(runtime.map(url=>url.searchParams.get('v')));
if (!runtime.some(url=>url.pathname.endsWith('/runtime.js')) ||
!runtime.some(url=>url.pathname.endsWith('/runtime.wasm')) ||
revisions.size !== 1 || !/^[a-f0-9]{64}$/.test([...revisions][0]))
failure = 'the runtime and collection files did not use one coherent cache revision';
}
// Let the library draw several frames before judging them.
await delay(3000);
const failed = console_lines.find(line => /frame failed|portable execution failed/.test(line));
+37 -37
View File
@@ -18,17 +18,9 @@
"ref": "master",
"url": "https://github.com/ziranlang/qrcode.git"
},
{
"commit": "818916db6cbd42034bf869899feb75be8829d42e",
"dependencies": {"crypto": "pc23fbf455e97614d", "kryon": "p4ce8ea37919db614"},
"id": "p15331309f570593d",
"name": "Apps",
"ref": "master",
"url": "https://github.com/waozixyz/apps.git"
},
{
"commit": "d74348c2e288ac55740461f7e106cda365b4db4a",
"dependencies": {"apps": "p15331309f570593d", "crypto": "pc23fbf455e97614d", "curl": "p1ca0e8d3c19dbe4c", "daochi_client": "p9972fcdd2d5ba999", "entity": "p6feeecb5bfff3686", "game2d": "pf2f54c7603f6e861", "kryon": "p4ce8ea37919db614", "kss": "p1b13dda539ed2a39", "liboqs": "pecdb097af6ab16f7", "mingcute": "pe1027b9d16704793", "monocypher": "p809b4d31a48625a3", "oqs": "p7098ac9cd92f7e5f", "plot": "pab5377a2950368a2", "practices": "p9079dde0fcc11248", "qrcode": "p0dfa70137405b096", "rini": "p09fa77e94b0dfc6c", "sqlite": "p1d80baafaa5fa18a"},
"dependencies": {"apps": "pfb2b063c26a84c8b", "crypto": "pc23fbf455e97614d", "curl": "p1ca0e8d3c19dbe4c", "daochi_client": "p9972fcdd2d5ba999", "entity": "p6a3a2bd6315ab909", "game2d": "pf2f54c7603f6e861", "kryon": "p974af619ca377b85", "kss": "p1b13dda539ed2a39", "liboqs": "pecdb097af6ab16f7", "mingcute": "pe1027b9d16704793", "monocypher": "p809b4d31a48625a3", "oqs": "p7098ac9cd92f7e5f", "plot": "pab5377a2950368a2", "practices": "p9079dde0fcc11248", "qrcode": "p0dfa70137405b096", "rini": "p09fa77e94b0dfc6c", "sqlite": "p1d80baafaa5fa18a"},
"id": "p183b01bccc6424e7",
"name": "Inbe",
"ref": "master",
@@ -36,20 +28,12 @@
},
{
"commit": "1cb9df183089a77c8a16448a556186f30b261a98",
"dependencies": {"kryon": "p4ce8ea37919db614"},
"dependencies": {"kryon": "p974af619ca377b85"},
"id": "p1b13dda539ed2a39",
"name": "Kss",
"ref": "master",
"url": "https://github.com/kryonlabs/kss.git"
},
{
"commit": "7d37be6e1f0643c01b35545e42e48c633f19a90d",
"dependencies": {"daochi_client": "p9972fcdd2d5ba999", "kryon": "p4ce8ea37919db614", "monocypher": "p809b4d31a48625a3", "qrcode": "p0dfa70137405b096"},
"id": "p6feeecb5bfff3686",
"name": "Entity",
"ref": "master",
"url": "https://github.com/waozixyz/entity.git"
},
{
"commit": "19b299005fbe2d895f4ad525cfdae62a2220c3ea",
"dependencies": {},
@@ -68,14 +52,6 @@
"source": true,
"url": "https://github.com/sqlite/sqlite.git"
},
{
"commit": "e09f38160d1c0ce14eea886720f46486e4dab65f",
"dependencies": {"raylib": "p5a77c9c35110e925"},
"id": "p4ce8ea37919db614",
"name": "kryon",
"ref": "master",
"url": "https://github.com/kryonlabs/kryon.git"
},
{
"commit": "fafa2cea97d0cb379d832086ba45a989fa6f9c8e",
"dependencies": {},
@@ -85,6 +61,14 @@
"source": true,
"url": "https://github.com/raysan5/raylib.git"
},
{
"commit": "90cee1066a51e1f8961de06515f6e50bdaaf4490",
"dependencies": {"daochi_client": "p9972fcdd2d5ba999", "kryon": "p974af619ca377b85", "monocypher": "p809b4d31a48625a3", "qrcode": "p0dfa70137405b096"},
"id": "p6a3a2bd6315ab909",
"name": "Entity",
"ref": "master",
"url": "https://github.com/waozixyz/entity.git"
},
{
"commit": "22d2ddbdc236796953c905a05a2cebf5ab1b4ff3",
"dependencies": {"liboqs": "pecdb097af6ab16f7"},
@@ -111,6 +95,14 @@
"source": true,
"url": "https://github.com/waozixyz/practices.git"
},
{
"commit": "3fad22341997f7c58ed1b11b1e88217358e51af5",
"dependencies": {"raylib": "p5a77c9c35110e925"},
"id": "p974af619ca377b85",
"name": "kryon",
"ref": "master",
"url": "https://github.com/kryonlabs/kryon.git"
},
{
"commit": "25d9f649c43a8de44a5fea602d2835e33e6ca999",
"dependencies": {"crypto": "pc23fbf455e97614d", "oqs": "p7098ac9cd92f7e5f"},
@@ -121,7 +113,7 @@
},
{
"commit": "3f888653b6b97010163d824c4cc72476be3214f3",
"dependencies": {"kryon": "p4ce8ea37919db614"},
"dependencies": {"kryon": "p974af619ca377b85"},
"id": "pab5377a2950368a2",
"name": "plot",
"ref": "master",
@@ -144,11 +136,11 @@
"url": "https://github.com/kryonlabs/mingcute.git"
},
{
"commit": "3cead1f21720258c0acffa84c8625579d68c3a9e",
"dependencies": {"apps": "p15331309f570593d", "entity": "p6feeecb5bfff3686", "kryon": "p4ce8ea37919db614", "mingcute": "pe1027b9d16704793"},
"id": "peafb3c123b12e97a",
"commit": "b9ca6de322881b40139ba6d19a0744eda1128db0",
"dependencies": {"apps": "pfb2b063c26a84c8b", "entity": "p6a3a2bd6315ab909", "kryon": "p974af619ca377b85", "mingcute": "pe1027b9d16704793"},
"id": "pe8259811ea138316",
"name": "Apfelwurm",
"ref": "3cead1f21720258c0acffa84c8625579d68c3a9e",
"ref": "b9ca6de322881b40139ba6d19a0744eda1128db0",
"url": "https://github.com/waozixyz/wurm.git"
},
{
@@ -162,23 +154,31 @@
},
{
"commit": "cee04692f3461dcb098833472f071c434980debb",
"dependencies": {"kryon": "p4ce8ea37919db614"},
"dependencies": {"kryon": "p974af619ca377b85"},
"id": "pf2f54c7603f6e861",
"name": "Game2D",
"ref": "master",
"url": "https://github.com/kryonlabs/game2d.git"
},
{
"commit": "82bf0955674c8afc6f6b85df86e59c46cfbe43ee",
"dependencies": {"apps": "p15331309f570593d", "entity": "p6feeecb5bfff3686", "kryon": "p4ce8ea37919db614", "mingcute": "pe1027b9d16704793"},
"id": "pf5159eeee3cf1d66",
"commit": "2419a7c645d3e2cfe904fc98763e06ee57cabbde",
"dependencies": {"apps": "pfb2b063c26a84c8b", "entity": "p6a3a2bd6315ab909", "kryon": "p974af619ca377b85", "mingcute": "pe1027b9d16704793"},
"id": "pf9aaac00f44c39f6",
"name": "Shovey",
"ref": "82bf0955674c8afc6f6b85df86e59c46cfbe43ee",
"ref": "2419a7c645d3e2cfe904fc98763e06ee57cabbde",
"url": "https://github.com/waozixyz/shovey.git"
},
{
"commit": "dc6b743b5299318fa74bd32854b0eff0046d24a2",
"dependencies": {"crypto": "pc23fbf455e97614d", "kryon": "p974af619ca377b85"},
"id": "pfb2b063c26a84c8b",
"name": "Apps",
"ref": "master",
"url": "https://github.com/waozixyz/apps.git"
}
],
"root": {
"dependencies": {"apps": "p15331309f570593d", "entity": "p6feeecb5bfff3686", "inbe": "p183b01bccc6424e7", "kryon": "p4ce8ea37919db614", "mingcute": "pe1027b9d16704793", "shovey": "pf5159eeee3cf1d66", "wurm": "peafb3c123b12e97a"},
"dependencies": {"apps": "pfb2b063c26a84c8b", "entity": "p6a3a2bd6315ab909", "inbe": "p183b01bccc6424e7", "kryon": "p974af619ca377b85", "mingcute": "pe1027b9d16704793", "shovey": "pf9aaac00f44c39f6", "wurm": "pe8259811ea138316"},
"name": "Arcade"
},
"toolchain": {
+2 -2
View File
@@ -39,7 +39,7 @@ ref = "master"
# Shovey's editions and editor are available as separate downloads.
[dependencies.shovey]
git = "https://github.com/waozixyz/shovey.git"
ref = "82bf0955674c8afc6f6b85df86e59c46cfbe43ee"
ref = "2419a7c645d3e2cfe904fc98763e06ee57cabbde"
# Compatibility tooling runs Inner Breeze's host checks; releases check its publisher pins.
[dependencies.inbe]
@@ -56,4 +56,4 @@ ref = "master"
[dependencies.wurm]
git = "https://github.com/waozixyz/wurm.git"
ref = "3cead1f21720258c0acffa84c8625579d68c3a9e"
ref = "b9ca6de322881b40139ba6d19a0744eda1128db0"