Compare commits

...
1 Commits
Author SHA1 Message Date
waozi b9ca6de322 Release Apfelwurm 0.2.4: the browser game fills the page 2026-10-27 16:05:44 -03:00
4 changed files with 11 additions and 10 deletions

No files matched your search

+4
View File
@@ -1,5 +1,9 @@
# Changelog
## [0.2.4] - 2026-10-27
- Play on the whole page at wurm.waozi.xyz, without a title bar above the game.
## [0.2.3] - 2026-10-27
- Top up in the Profile opens dew.waozi.xyz, where you can buy Dew with Monero in any amount or with almost any other coin.
+1 -4
View File
@@ -13,14 +13,11 @@
<meta property="og:url" content="https://wurm.waozi.xyz/">
<style>
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:#202b26;color:#e0e7d9;font:16px system-ui,sans-serif;overscroll-behavior:none}
body{display:flex;flex-direction:column}header{height:48px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 max(16px,env(safe-area-inset-right));background:#303c33;border-bottom:1px solid #52634f}
a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}nav{display:flex;gap:20px;font-size:14px}#canvas-frame{flex:1;min-height:0;position:relative}canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}
body{overflow:hidden}#canvas-frame{position:fixed;inset:0}canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}
#loading{position:absolute;inset:0;display:grid;place-content:center;gap:16px;text-align:center;background:linear-gradient(#303c33e8,#202b26e8),url('assets/art/title.png') center/cover;font-size:18px}#loading strong{font-size:32px}#loading[hidden]{display:none}
@media(max-width:500px){header{height:42px}nav{gap:12px;font-size:12px}}
</style>
</head>
<body>
<header><a href="https://waozi.xyz/studio/#apfelwurm"><strong>Apfelwurm</strong> · Waozi</a><nav><a href="https://github.com/waozixyz/wurm/releases/latest">Android</a><a href="https://github.com/waozixyz/wurm">Source</a><a href="privacy.html">Privacy</a></nav></header>
<main id="canvas-frame"><canvas id="canvas" tabindex="0" aria-label="Apfelwurm game: choose swipe or direction pad, collect apples, then leave through the top gate."></canvas><div id="loading" role="status"><strong>A little worm.<br>A long journey.</strong><span>Opening Apfelwurm…</span></div></main>
<script>
var Module={canvas:document.getElementById('canvas'),onRuntimeInitialized(){document.getElementById('loading').hidden=true;Module.canvas.focus()},onAbort(){document.getElementById('loading').hidden=false;document.getElementById('loading').textContent='The game could not open. Please reload to try again.'},printErr(text){console.error(text)}};
+4 -4
View File
@@ -26,8 +26,8 @@ try{
const click=async(x,y)=>{await command('Input.dispatchMouseEvent',{type:'mouseMoved',x,y});await delay(80);await command('Input.dispatchMouseEvent',{type:'mousePressed',x,y,button:'left',clickCount:1});await delay(80);await command('Input.dispatchMouseEvent',{type:'mouseReleased',x,y,button:'left',clickCount:1});await delay(180);};
await until("typeof Module!=='undefined' && Module.FS && document.getElementById('loading').hidden");await until("(()=>{try{return Module.FS.stat('/kryon-apps').mode>0}catch{return false}})()");await delay(1800);await capture('title');
const colorful=await evaluate("(()=>{const c=document.getElementById('canvas'),p=c.getContext('2d').getImageData(0,0,c.width,c.height).data,s=new Set();for(let i=0;i<p.length;i+=80)s.add(p[i]+','+p[i+1]+','+p[i+2]);return s.size})()");if(colorful<200)throw new Error('Title artwork did not render: '+colorful);
await click(1018,82);await delay(400);await capture('profile');await click(48,78);await delay(200);
await click(1066,82);await delay(200);await capture('settings');await key('Escape',27);
await click(1018,34);await delay(400);await capture('profile');await click(48,30);await delay(200);
await click(1066,34);await delay(200);await capture('settings');await key('Escape',27);
await key('Enter',13);await delay(200);await capture('controls');await key('1',49);await until("(()=>{try{return Module.FS.readFile('/kryon-apps/wurm/controls.dat')[0]===0}catch{return false}})()");await delay(300);await capture('level-1');
await key('ArrowRight',39);await delay(150);await key(' ',32);await capture('playing');
await command('Emulation.setDeviceMetricsOverride',{width:390,height:844,deviceScaleFactor:1,mobile:true});await delay(400);await capture('portrait');
@@ -61,9 +61,9 @@ try{
if(await gridFingerprint()===beforeScroll)throw new Error('Browser selector did not scroll under touch drag');
if(!await evaluate("Module.FS.readFile('/kryon-apps/wurm/run.dat')[0]===57"))throw new Error('Dragging the selector started a level');
await capture('level-selector-scrolled');
await click(354,138);await click(90,280); // Future Pinewood shows only locks.
await click(354,96);await click(90,238); // Future Pinewood shows only locks.
if(!await evaluate("Module.FS.readFile('/kryon-apps/wurm/run.dat')[0]===57"))throw new Error('A locked browser level started');
await capture('locked-levels');await click(36,138);await click(90,280);
await capture('locked-levels');await click(36,96);await click(90,238);
await until("JSON.stringify(Array.from(Module.FS.readFile('/kryon-apps/wurm/run.dat')))==='[40,3,0,0,0,0]'");
if(!await evaluate("Module.FS.readFile('/kryon-apps/wurm/unlocked.dat')[0]===57"))throw new Error('Level selection erased progress');
await key(' ',32);await key('q',81);await key('l',76);await key('Escape',27);await key('c',67);
+2 -2
View File
@@ -1,4 +1,4 @@
{
"version": "0.2.3",
"version_code": 13
"version": "0.2.4",
"version_code": 14
}