Codex commited on
Commit
bdba4c4
·
1 Parent(s): 5320df1

Remove remaining environment development notes and state game rights

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. environments/LICENSE +4 -3
  2. environments/README.md +3 -1
  3. environments/THIRD_PARTY_NOTICES.md +2 -1
  4. environments/games/web/games/_native/runtime.js +1 -4
  5. environments/games/web/games/_native/shell.js +1 -4
  6. environments/games/web/games/battlecity_remake/index.html +1 -0
  7. environments/games/web/games/cuphead_remake/index.html +1 -1
  8. environments/games/web/games/doom_remake/compact_actions.json +1 -1
  9. environments/games/web/games/doom_remake/index.html +2 -2
  10. environments/games/web/games/genshin_remake/app3d.js +0 -1
  11. environments/games/web/games/genshin_remake/compact_actions.json +1 -1
  12. environments/games/web/games/genshin_remake/index.html +2 -2
  13. environments/games/web/games/hexen2_remake/boss_eidolon.js +1 -2
  14. environments/games/web/games/hexen2_remake/boss_praevus.js +1 -2
  15. environments/games/web/games/hexen2_remake/compact_actions.json +1 -1
  16. environments/games/web/games/hexen2_remake/index.html +2 -2
  17. environments/games/web/games/hollowknight_remake/bosses/hollow_vessel.js +1 -1
  18. environments/games/web/games/hollowknight_remake/bosses/iron_bulwark.js +1 -1
  19. environments/games/web/games/hollowknight_remake/bosses/lumen_moth.js +1 -1
  20. environments/games/web/games/hollowknight_remake/bosses/needle_warden.js +1 -1
  21. environments/games/web/games/hollowknight_remake/bosses/pale_vessel.js +1 -1
  22. environments/games/web/games/hollowknight_remake/bosses/sickle_sisters.js +1 -1
  23. environments/games/web/games/hollowknight_remake/game.js +2 -9
  24. environments/games/web/games/hollowknight_remake/index.html +1 -0
  25. environments/games/web/games/isaac_remake/draw.js +1 -2
  26. environments/games/web/games/isaac_remake/game.js +1 -3
  27. environments/games/web/games/isaac_remake/index.html +2 -2
  28. environments/games/web/games/kirby_remake/bosses/king_dedede.js +1 -1
  29. environments/games/web/games/kirby_remake/bosses/kracko.js +1 -1
  30. environments/games/web/games/kirby_remake/bosses/whispy_woods.js +1 -1
  31. environments/games/web/games/kirby_remake/index.html +1 -1
  32. environments/games/web/games/kirby_remake/replay.html +1 -0
  33. environments/games/web/games/kof_remake/bosses/orochi_team_ai.js +1 -1
  34. environments/games/web/games/kof_remake/index.html +1 -0
  35. environments/games/web/games/kof_remake/scripted.js +0 -1
  36. environments/games/web/games/mario64_remake/app3d.js +0 -1
  37. environments/games/web/games/mario64_remake/game.js +1 -2
  38. environments/games/web/games/mario64_remake/index.html +2 -2
  39. environments/games/web/games/megaman_remake/bosses/bomb_man.js +1 -1
  40. environments/games/web/games/megaman_remake/bosses/cut_man.js +1 -1
  41. environments/games/web/games/megaman_remake/bosses/elec_man.js +1 -1
  42. environments/games/web/games/megaman_remake/bosses/fire_man.js +1 -1
  43. environments/games/web/games/megaman_remake/bosses/guts_man.js +1 -1
  44. environments/games/web/games/megaman_remake/bosses/ice_man.js +1 -1
  45. environments/games/web/games/megaman_remake/data/weapons.js +1 -1
  46. environments/games/web/games/megaman_remake/index.html +1 -1
  47. environments/games/web/games/minecraft_remake/index.html +1 -1
  48. environments/games/web/games/minecraft_remake/play.js +2 -2
  49. environments/games/web/games/nfsmw_remake/compact_actions.json +1 -1
  50. environments/games/web/games/nfsmw_remake/index.html +2 -2
environments/LICENSE CHANGED
@@ -16,9 +16,10 @@ Copies and substantial portions of the covered materials, including modified
16
  copies, must retain this copyright notice and license. Modified copies must
17
  identify their changes and may be shared only under these terms.
18
 
19
- All game titles, characters, artwork, and other third-party material remain the
20
- property of their respective rights holders. GameDojo is independent of those
21
- rights holders and has no affiliation, endorsement, or sponsorship from them.
 
22
  This license grants no rights in third-party material. Separately licensed
23
  components remain subject to their own terms. See THIRD_PARTY_NOTICES.md.
24
 
 
16
  copies, must retain this copyright notice and license. Modified copies must
17
  identify their changes and may be shared only under these terms.
18
 
19
+ All copyrights, trademarks, and other intellectual property rights in the
20
+ original games, including their titles, characters, artwork, and audio, remain
21
+ exclusively with their respective original game companies and rights holders.
22
+ GameDojo has no affiliation, endorsement, or sponsorship from those parties.
23
  This license grants no rights in third-party material. Separately licensed
24
  components remain subject to their own terms. See THIRD_PARTY_NOTICES.md.
25
 
environments/README.md CHANGED
@@ -36,6 +36,8 @@ python run_model.py --case doom/cyberdemon --tier normal --policy noop --max-ste
36
 
37
  `run_model.py` accepts `--format lumine` for CUA or `--format semantic` for semantic actions, and `--time paused` or `--time realtime`. For model evaluation, use `--policy chat` and set `--base-url` and `--model` to your OpenAI-compatible endpoint and model. Run `python run_model.py --help` for the available options.
38
 
39
- ## License
 
 
40
 
41
  Original GameDojo materials in this directory are available for non-commercial scientific research under the [GameDojo Non-Commercial Research License](LICENSE). See the [third-party notices](THIRD_PARTY_NOTICES.md) and the [project copyright and use statement](https://gamedojo-benchmark.github.io/).
 
36
 
37
  `run_model.py` accepts `--format lumine` for CUA or `--format semantic` for semantic actions, and `--time paused` or `--time realtime`. For model evaluation, use `--policy chat` and set `--base-url` and `--model` to your OpenAI-compatible endpoint and model. Run `python run_model.py --help` for the available options.
38
 
39
+ ## Copyright and license
40
+
41
+ All copyrights, trademarks, and other intellectual property rights in the original games, including their titles, characters, artwork, and audio, remain exclusively with their respective original game companies and rights holders.
42
 
43
  Original GameDojo materials in this directory are available for non-commercial scientific research under the [GameDojo Non-Commercial Research License](LICENSE). See the [third-party notices](THIRD_PARTY_NOTICES.md) and the [project copyright and use statement](https://gamedojo-benchmark.github.io/).
environments/THIRD_PARTY_NOTICES.md CHANGED
@@ -1,7 +1,8 @@
1
  # Third-party notices
2
 
3
  - Three.js r160 is bundled as `games/web/games/_boss3d/vendor/three.min.js`. Copyright © 2010–2023 Three.js authors. The [MIT license](games/web/games/_boss3d/vendor/LICENSE) applies to that component.
4
- - Game titles, characters, and other third-party intellectual property belong to their respective owners. The GameDojo license grants rights in original GameDojo material only.
 
5
  - The Battle City environment includes stage layouts and spawn order transcribed from the reference game via an [annotated disassembly](https://github.com/cyneprepou4uk/NES-Games-Disassembly/blob/6c145873e0f344ac4f132f451ac2dc7ea95cea6b/Battle%20City/bank_FF.asm) and the [vgrichina/battlecity reference implementation](https://github.com/vgrichina/battlecity). The Mega Man environment includes weapon and boss tables transcribed via an [annotated disassembly](https://github.com/plasticsmoke/megaman1-disassembly-ca65/tree/2771fb3). The GameDojo license does not grant rights in the original games or their data.
6
  - The Kirby encounters reference the [Kirby's Dream Land disassembly](https://github.com/ElectroDeoxys/kirbydreamland/tree/dba74416a66e4641204073276c0330f07b30cf12) and WiKirby. The source-game graphics and audio are excluded from the package.
7
  - Upstream references for Need for Speed: Most Wanted, Hexen II, Quake II, and Tomb Raider are recorded in their game manifests.
 
1
  # Third-party notices
2
 
3
  - Three.js r160 is bundled as `games/web/games/_boss3d/vendor/three.min.js`. Copyright © 2010–2023 Three.js authors. The [MIT license](games/web/games/_boss3d/vendor/LICENSE) applies to that component.
4
+ - All copyrights, trademarks, and other intellectual property rights in the original games, including their titles, characters, artwork, and audio, remain exclusively with their respective original game companies and rights holders. The GameDojo license grants rights in original GameDojo material only.
5
+ - Quake II’s deterministic trigonometry in `q2core.js` adapts [fdlibm](https://www.netlib.org/fdlibm/). Copyright © 1993 Sun Microsystems, Inc. See the [fdlibm permission notice](games/web/games/quake2_remake/LICENSE.fdlibm).
6
  - The Battle City environment includes stage layouts and spawn order transcribed from the reference game via an [annotated disassembly](https://github.com/cyneprepou4uk/NES-Games-Disassembly/blob/6c145873e0f344ac4f132f451ac2dc7ea95cea6b/Battle%20City/bank_FF.asm) and the [vgrichina/battlecity reference implementation](https://github.com/vgrichina/battlecity). The Mega Man environment includes weapon and boss tables transcribed via an [annotated disassembly](https://github.com/plasticsmoke/megaman1-disassembly-ca65/tree/2771fb3). The GameDojo license does not grant rights in the original games or their data.
7
  - The Kirby encounters reference the [Kirby's Dream Land disassembly](https://github.com/ElectroDeoxys/kirbydreamland/tree/dba74416a66e4641204073276c0330f07b30cf12) and WiKirby. The source-game graphics and audio are excluded from the package.
8
  - Upstream references for Need for Speed: Most Wanted, Hexen II, Quake II, and Tomb Raider are recorded in their game manifests.
environments/games/web/games/_native/runtime.js CHANGED
@@ -21,10 +21,7 @@
21
  if(!Array.isArray(mouse)||mouse.length!==3||mouse.some((v,i)=>!Number.isFinite(v)||Math.abs(v)>(i===2?5:1000))) throw Error('Invalid mouse');
22
  };
23
  class Session {
24
- // `options` (2026-11-03) is passed through to the game's own Game constructor untouched — loadouts,
25
- // variants, anything a game chooses to accept. It is NOT validated here because only the game knows what
26
- // it takes; a game that ignores the argument behaves exactly as before. Whatever is passed must be
27
- // recorded alongside the seed and difficulty for the run to stay reproducible (bench_media does this).
28
  constructor(Module,id,seed=1,difficulty=.5,options) {
29
  if(!Module.cases.some(c=>c.id===id)) throw Error('Unknown case');
30
  if(!Number.isInteger(seed)||seed<0||seed>0xffffffff||!Number.isFinite(difficulty)||difficulty<0||difficulty>1) throw Error('Invalid reset');
 
21
  if(!Array.isArray(mouse)||mouse.length!==3||mouse.some((v,i)=>!Number.isFinite(v)||Math.abs(v)>(i===2?5:1000))) throw Error('Invalid mouse');
22
  };
23
  class Session {
24
+ // Each game receives its own reset options, including loadout or mode.
 
 
 
25
  constructor(Module,id,seed=1,difficulty=.5,options) {
26
  if(!Module.cases.some(c=>c.id===id)) throw Error('Unknown case');
27
  if(!Number.isInteger(seed)||seed<0||seed>0xffffffff||!Number.isFinite(difficulty)||difficulty<0||difficulty>1) throw Error('Invalid reset');
environments/games/web/games/_native/shell.js CHANGED
@@ -1,9 +1,7 @@
1
  (function(){
2
  'use strict';const N=NativeBench,M=window.GAME_MODULE,$=s=>document.querySelector(s),canvas=$('canvas'),ctx=canvas.getContext('2d');
3
  let session=new N.Session(M,M.cases[0].id,1,.5),running=false,last=0,acc=0,held=new Set(),mouse=[0,0,0],replay=null,replayIndex=0,auto=false,endedAt=0;
4
- // Default key names. A game may add or re-point entries through Module.codeMap (2026-11-03, requested by
5
- // isaac_remake): its own mapping is merged over these, so the page accepts the keys its controls list
6
- // advertises. It cannot remove a default — the shared buttons keep working on every game.
7
  const codeMap=Object.assign({KeyW:'W',KeyA:'A',KeyS:'S',KeyD:'D',Space:'Space',ShiftLeft:'Shift',ShiftRight:'Shift',KeyJ:'J',KeyK:'K',KeyL:'L',KeyQ:'Q',KeyE:'E',KeyR:'R',ArrowUp:'W',ArrowDown:'S',ArrowLeft:'A',ArrowRight:'D'},M.codeMap||{});
8
  window.nativeAPI={
9
  // `options` is forwarded to the game untouched (loadouts, variants). The harness records whatever it passes,
@@ -32,7 +30,6 @@
32
  $('#import').onclick=()=>$('#file').click();
33
  function openReplay(data){N.Session.import(M,data);session=new N.Session(M,data.case,data.seed,data.difficulty);replay=data;endedAt=0;replayIndex=0;auto=false;running=true;clearKeys();acc=0;status('Replay verified: '+data.finalHash+'. Replaying…');$('#case').value=data.case;}
34
  $('#file').onchange=async e=>{const file=e.target.files[0];if(!file)return;try{if(file.size>12e6)throw Error('Replay cannot exceed 12 MB');openReplay(JSON.parse(await file.text()));}catch(err){status('Import failed: '+err.message);}e.target.value='';};
35
- $('#sample').onclick=()=>{try{if(!M.example)throw Error('No built-in replay for this scene; use the scripted demo or import a replay');openReplay(M.example[$('#case').value]);}catch(e){status(e.message);}};
36
  function replayTick(){if(replayIndex<replay.inputs.length){const input=replay.inputs[replayIndex++];session.tick(input[0],input[1]);}if(replayIndex>=replay.inputs.length){running=false;status('Replay Finished · '+(N.hash(session.state())===replay.finalHash?'state checksum matches':'state checksum failed'));}}
37
  function dropInput(){clearKeys();mouse=[0,0,0];if(running){running=false;status('Window lost focus; paused. Click Resume to continue.');}draw();}
38
  window.addEventListener('blur',dropInput);document.addEventListener('visibilitychange',()=>{if(document.hidden)dropInput();});
 
1
  (function(){
2
  'use strict';const N=NativeBench,M=window.GAME_MODULE,$=s=>document.querySelector(s),canvas=$('canvas'),ctx=canvas.getContext('2d');
3
  let session=new N.Session(M,M.cases[0].id,1,.5),running=false,last=0,acc=0,held=new Set(),mouse=[0,0,0],replay=null,replayIndex=0,auto=false,endedAt=0;
4
+ // Merge any game-specific key bindings over the shared controls.
 
 
5
  const codeMap=Object.assign({KeyW:'W',KeyA:'A',KeyS:'S',KeyD:'D',Space:'Space',ShiftLeft:'Shift',ShiftRight:'Shift',KeyJ:'J',KeyK:'K',KeyL:'L',KeyQ:'Q',KeyE:'E',KeyR:'R',ArrowUp:'W',ArrowDown:'S',ArrowLeft:'A',ArrowRight:'D'},M.codeMap||{});
6
  window.nativeAPI={
7
  // `options` is forwarded to the game untouched (loadouts, variants). The harness records whatever it passes,
 
30
  $('#import').onclick=()=>$('#file').click();
31
  function openReplay(data){N.Session.import(M,data);session=new N.Session(M,data.case,data.seed,data.difficulty);replay=data;endedAt=0;replayIndex=0;auto=false;running=true;clearKeys();acc=0;status('Replay verified: '+data.finalHash+'. Replaying…');$('#case').value=data.case;}
32
  $('#file').onchange=async e=>{const file=e.target.files[0];if(!file)return;try{if(file.size>12e6)throw Error('Replay cannot exceed 12 MB');openReplay(JSON.parse(await file.text()));}catch(err){status('Import failed: '+err.message);}e.target.value='';};
 
33
  function replayTick(){if(replayIndex<replay.inputs.length){const input=replay.inputs[replayIndex++];session.tick(input[0],input[1]);}if(replayIndex>=replay.inputs.length){running=false;status('Replay Finished · '+(N.hash(session.state())===replay.finalHash?'state checksum matches':'state checksum failed'));}}
34
  function dropInput(){clearKeys();mouse=[0,0,0];if(running){running=false;status('Window lost focus; paused. Click Resume to continue.');}draw();}
35
  window.addEventListener('blur',dropInput);document.addEventListener('visibilitychange',()=>{if(document.hidden)dropInput();});
environments/games/web/games/battlecity_remake/index.html CHANGED
@@ -11,6 +11,7 @@
11
  <section id="help"><div class="box"><h3>Controls and Rules</h3><ul><li><kbd>W A S D</kbd> / arrow keys: drive in four directions (3 pixels every 4 frames); perpendicular turns align to the 8px grid, and other tanks block movement.</li><li><kbd>J</kbd> / <kbd>K</kbd> / <kbd>Space</kbd> / left mouse button: <b>fire one shot per press</b>; only one shell may be active by default; one star speeds up shells, two stars allow two shells, and three stars let shells pierce steel walls.</li><li>Each shell removes a 4px layer of brick. Water blocks tanks but not shells; trees hide tanks; ice locks your direction while sliding.</li><li>Any shell that hits the eagle base, including your own, causes immediate defeat. Losing all lives also ends the run (Easy: 4, Normal: 3, Hard: 2). Opposing shells cancel on contact.</li><li>Enemies 4, 11, and 18 in the spawn roster flash red (2 and 9 on Easy; repeated every 20 on Hard). Defeat one to drop a star, shield, base fortification, freeze, grenade that clears active enemies, or an extra life.</li><li>Difficulty tiers (benchmark extensions; frame-by-frame rules stay the same):<b>Easy</b> 10 enemies sampled from alternating roster entries, two starting stars, four lives, and half the enemy fire rate;<b>Normal</b> the original 20-enemy roster, original attack timing and fire rate, and a 150-frame spawn interval;<b>Hard</b> the roster repeated three times for 60 enemies; enemies rush the base after about 14 seconds on the original second-loop timer, fire 1.5 times as often, half use fast shells with red muzzles, and you have two lives.</li><li>Enemy tactics change over time: they patrol randomly, then chase the player, and finally rush the eagle base (shown at right).</li></ul></div><div class="box" id="skills"><h3>Stage Guide</h3><ul id="skilllist"></ul></div></section>
12
  <section class="box replay"><h3>Recording and Replay</h3><div class="row"><button class="b" id="save-run" disabled>Download Current Replay</button><label class="b">Import Replay <input id="load-run" type="file" accept="application/json,.json" style="width:170px"></label><button class="b" id="replay-toggle">Pause Replay</button><button class="b" id="replay-back">Back to Game</button></div><output id="replay-status">After a match, download the full action record. Example replays use the same rules and seed.</output></section>
13
  <p class="sub" style="font-size:12px;margin-top:14px">Independent code and original procedural art. The first three maps and spawn rosters transcribe original game data; the last three maps are original. Source details, ROM addresses, and approximations are documented in the project notes.</p>
 
14
  </main>
15
  <script src="../../engine/core.js"></script><script src="arena.js"></script><script src="bc_kit.js"></script><script src="specs/bc_brick_front.spec.js"></script><script src="specs/bc_river_ice.spec.js"></script><script src="specs/bc_steel_fort.spec.js"></script><script src="specs/bc_river_delta.spec.js"></script><script src="specs/bc_jungle_ambush.spec.js"></script><script src="specs/bc_steel_maze.spec.js"></script><script src="body_tank.js"></script><script src="../../engine/boss_kit.js"></script><script src="bosses/wave.js"></script><script src="../../engine/case.js"></script><script src="../../engine/juice.js"></script><script src="../../engine/art_kit.js"></script><script src="../../engine/renderer.js"></script><script src="art/scenes.js"></script><script src="draw.js"></script><script src="game.js"></script><script src="scripted.js"></script><script src="../../engine/input.js"></script><script src="../../engine/app.js"></script><script src="../../engine/sessions.js"></script>
16
  </body></html>
 
11
  <section id="help"><div class="box"><h3>Controls and Rules</h3><ul><li><kbd>W A S D</kbd> / arrow keys: drive in four directions (3 pixels every 4 frames); perpendicular turns align to the 8px grid, and other tanks block movement.</li><li><kbd>J</kbd> / <kbd>K</kbd> / <kbd>Space</kbd> / left mouse button: <b>fire one shot per press</b>; only one shell may be active by default; one star speeds up shells, two stars allow two shells, and three stars let shells pierce steel walls.</li><li>Each shell removes a 4px layer of brick. Water blocks tanks but not shells; trees hide tanks; ice locks your direction while sliding.</li><li>Any shell that hits the eagle base, including your own, causes immediate defeat. Losing all lives also ends the run (Easy: 4, Normal: 3, Hard: 2). Opposing shells cancel on contact.</li><li>Enemies 4, 11, and 18 in the spawn roster flash red (2 and 9 on Easy; repeated every 20 on Hard). Defeat one to drop a star, shield, base fortification, freeze, grenade that clears active enemies, or an extra life.</li><li>Difficulty tiers (benchmark extensions; frame-by-frame rules stay the same):<b>Easy</b> 10 enemies sampled from alternating roster entries, two starting stars, four lives, and half the enemy fire rate;<b>Normal</b> the original 20-enemy roster, original attack timing and fire rate, and a 150-frame spawn interval;<b>Hard</b> the roster repeated three times for 60 enemies; enemies rush the base after about 14 seconds on the original second-loop timer, fire 1.5 times as often, half use fast shells with red muzzles, and you have two lives.</li><li>Enemy tactics change over time: they patrol randomly, then chase the player, and finally rush the eagle base (shown at right).</li></ul></div><div class="box" id="skills"><h3>Stage Guide</h3><ul id="skilllist"></ul></div></section>
12
  <section class="box replay"><h3>Recording and Replay</h3><div class="row"><button class="b" id="save-run" disabled>Download Current Replay</button><label class="b">Import Replay <input id="load-run" type="file" accept="application/json,.json" style="width:170px"></label><button class="b" id="replay-toggle">Pause Replay</button><button class="b" id="replay-back">Back to Game</button></div><output id="replay-status">After a match, download the full action record. Example replays use the same rules and seed.</output></section>
13
  <p class="sub" style="font-size:12px;margin-top:14px">Independent code and original procedural art. The first three maps and spawn rosters transcribe original game data; the last three maps are original. Source details, ROM addresses, and approximations are documented in the project notes.</p>
14
+ <footer><p>All rights in the original game, including its title, characters, artwork, audio, and trademarks, remain exclusively with its original game companies and rights holders. GameDojo is an independent reconstruction for non-commercial scientific research.</p></footer>
15
  </main>
16
  <script src="../../engine/core.js"></script><script src="arena.js"></script><script src="bc_kit.js"></script><script src="specs/bc_brick_front.spec.js"></script><script src="specs/bc_river_ice.spec.js"></script><script src="specs/bc_steel_fort.spec.js"></script><script src="specs/bc_river_delta.spec.js"></script><script src="specs/bc_jungle_ambush.spec.js"></script><script src="specs/bc_steel_maze.spec.js"></script><script src="body_tank.js"></script><script src="../../engine/boss_kit.js"></script><script src="bosses/wave.js"></script><script src="../../engine/case.js"></script><script src="../../engine/juice.js"></script><script src="../../engine/art_kit.js"></script><script src="../../engine/renderer.js"></script><script src="art/scenes.js"></script><script src="draw.js"></script><script src="game.js"></script><script src="scripted.js"></script><script src="../../engine/input.js"></script><script src="../../engine/app.js"></script><script src="../../engine/sessions.js"></script>
17
  </body></html>
environments/games/web/games/cuphead_remake/index.html CHANGED
@@ -7,6 +7,6 @@
7
  <div class="row hidden" id="play-actions"><button class="b" id="pause">Pause</button></div><div id="pausepanel" class="row hidden"><button id="resume" class="b">Resume</button><button id="quit" class="b">Back to Stages</button></div>
8
  <div id="help"><section class="box"><h3>Controls · Ground / Flight</h3><ul><li><kbd>A</kbd>/<kbd>D</kbd> to run; <kbd>W</kbd>/<kbd>S</kbd> to aim in eight directions. Hold <kbd>L</kbd> to stand still and aim. <kbd>S</kbd> crouches on the ground; crouch shots fire horizontally.</li><li><kbd>Space</kbd> to jump; press again in the air to parry a <strong style="color:#c84a83">pink</strong> target, bounce up, and gain one card.</li><li><kbd>Shift</kbd> to dash (no default invulnerability); <kbd>J</kbd> / left mouse button for rapid fire; <kbd>K</kbd> / right mouse button for EX (one card).</li><li>With five cards, <kbd>K</kbd> or <kbd>E</kbd> unleashes a super: a horizontal beam on the ground or a bomb transformation in flight.</li><li>In flight, <kbd>WASD</kbd> moves in eight directions. Hold <kbd>Shift</kbd> to shrink and move faster, with weaker short-range shots. <kbd>Q</kbd> switches between gun and bomb; <kbd>Space</kbd> parries.</li><li><kbd>P</kbd>/<kbd>Esc</kbd> pauses; <kbd>Q</kbd> returns to the menu while paused; <kbd>R</kbd> restarts after a result. Scripted Demo runs <code>BB.GAME.scripted</code>.</li></ul></section><section class="box" id="skills"><h3>Move List</h3><ul id="skilllist"></ul></section></div>
9
  <div class="replay-panel"><b>Film Room · Replay and Step-through</b><div class="row"><button id="save-run" class="b">Save This Replay</button><label class="b">Import Replay <input id="load-run" type="file" accept=".json" style="max-width:150px"></label><button id="replay-toggle" class="b">Play / Pause</button><button id="replay-back" class="b">Exit Replay</button><span id="replay-status">One input packet every 200 ms; deterministic replay with the same seed and rules</span></div></div>
10
- <footer>Independent mechanical recreation with original procedural graphics. No charms; ground combat uses the basic rapid-fire gun and a sweeping beam. Exact enemy paths and unpublished frame counts use auditable approximations.</footer></div>
11
  <script src="../../engine/core.js"></script><script src="arena.js"></script><script src="specs/goopy.spec.js"></script><script src="specs/root_pack.spec.js"></script><script src="specs/hilda.spec.js"></script><script src="specs/cagney.spec.js"></script><script src="specs/ribby_croaks.spec.js"></script><script src="specs/wally.spec.js"></script><script src="body_cup.js"></script><script src="../../engine/boss_kit.js"></script><script src="bosses/goopy.js"></script><script src="bosses/root_pack.js"></script><script src="bosses/hilda.js"></script><script src="bosses/cagney.js"></script><script src="bosses/ribby_croaks.js"></script><script src="bosses/wally.js"></script><script src="../../engine/case.js"></script><script src="../../engine/juice.js"></script><script src="../../engine/art_kit.js"></script><script src="../../engine/renderer.js"></script><script src="art/scenes.js"></script><script src="draw/figures.js"></script><script src="draw/figures_v5.js"></script><script src="game.js"></script><script src="scripted.js"></script><script src="../../engine/input.js"></script><script src="../../engine/app.js"></script><script src="../../engine/sessions.js"></script>
12
  </body></html>
 
7
  <div class="row hidden" id="play-actions"><button class="b" id="pause">Pause</button></div><div id="pausepanel" class="row hidden"><button id="resume" class="b">Resume</button><button id="quit" class="b">Back to Stages</button></div>
8
  <div id="help"><section class="box"><h3>Controls · Ground / Flight</h3><ul><li><kbd>A</kbd>/<kbd>D</kbd> to run; <kbd>W</kbd>/<kbd>S</kbd> to aim in eight directions. Hold <kbd>L</kbd> to stand still and aim. <kbd>S</kbd> crouches on the ground; crouch shots fire horizontally.</li><li><kbd>Space</kbd> to jump; press again in the air to parry a <strong style="color:#c84a83">pink</strong> target, bounce up, and gain one card.</li><li><kbd>Shift</kbd> to dash (no default invulnerability); <kbd>J</kbd> / left mouse button for rapid fire; <kbd>K</kbd> / right mouse button for EX (one card).</li><li>With five cards, <kbd>K</kbd> or <kbd>E</kbd> unleashes a super: a horizontal beam on the ground or a bomb transformation in flight.</li><li>In flight, <kbd>WASD</kbd> moves in eight directions. Hold <kbd>Shift</kbd> to shrink and move faster, with weaker short-range shots. <kbd>Q</kbd> switches between gun and bomb; <kbd>Space</kbd> parries.</li><li><kbd>P</kbd>/<kbd>Esc</kbd> pauses; <kbd>Q</kbd> returns to the menu while paused; <kbd>R</kbd> restarts after a result. Scripted Demo runs <code>BB.GAME.scripted</code>.</li></ul></section><section class="box" id="skills"><h3>Move List</h3><ul id="skilllist"></ul></section></div>
9
  <div class="replay-panel"><b>Film Room · Replay and Step-through</b><div class="row"><button id="save-run" class="b">Save This Replay</button><label class="b">Import Replay <input id="load-run" type="file" accept=".json" style="max-width:150px"></label><button id="replay-toggle" class="b">Play / Pause</button><button id="replay-back" class="b">Exit Replay</button><span id="replay-status">One input packet every 200 ms; deterministic replay with the same seed and rules</span></div></div>
10
+ <footer>All rights in the original game, including its title, characters, artwork, audio, and trademarks, remain exclusively with its original game companies and rights holders. GameDojo is an independent reconstruction for non-commercial scientific research.</footer></div>
11
  <script src="../../engine/core.js"></script><script src="arena.js"></script><script src="specs/goopy.spec.js"></script><script src="specs/root_pack.spec.js"></script><script src="specs/hilda.spec.js"></script><script src="specs/cagney.spec.js"></script><script src="specs/ribby_croaks.spec.js"></script><script src="specs/wally.spec.js"></script><script src="body_cup.js"></script><script src="../../engine/boss_kit.js"></script><script src="bosses/goopy.js"></script><script src="bosses/root_pack.js"></script><script src="bosses/hilda.js"></script><script src="bosses/cagney.js"></script><script src="bosses/ribby_croaks.js"></script><script src="bosses/wally.js"></script><script src="../../engine/case.js"></script><script src="../../engine/juice.js"></script><script src="../../engine/art_kit.js"></script><script src="../../engine/renderer.js"></script><script src="art/scenes.js"></script><script src="draw/figures.js"></script><script src="draw/figures_v5.js"></script><script src="game.js"></script><script src="scripted.js"></script><script src="../../engine/input.js"></script><script src="../../engine/app.js"></script><script src="../../engine/sessions.js"></script>
12
  </body></html>
environments/games/web/games/doom_remake/compact_actions.json CHANGED
@@ -2,7 +2,7 @@
2
  "schema": "bossbench/compact-actions@1",
3
  "game": "doom_remake",
4
  "version": "doom-compact@1",
5
- "note": "ViZDoom-style button set: 8-way movement with run always held, turn by fixed angles, one head for fire / weapon change. One action = one 200 ms packet. Mouse turn: 1 count = 0.0025 rad = 0.143 deg, so dx 70 = 10 deg. No jump, no look up or down: the original has neither. Walking is left out: the reference controller runs 100% of the time. Fire and weapon change share a head because they are never used together and Shift + two direction keys + J + K would be 5 keys in one sub-step.",
6
  "heads": [
7
  {
8
  "name": "move",
 
2
  "schema": "bossbench/compact-actions@1",
3
  "game": "doom_remake",
4
  "version": "doom-compact@1",
5
+ "note": "A 200 ms packet combines eight-way running, fixed-angle turning, and one fire or weapon action. One mouse count turns the view 0.0025 radians.",
6
  "heads": [
7
  {
8
  "name": "move",
environments/games/web/games/doom_remake/index.html CHANGED
@@ -1,7 +1,7 @@
1
  <!doctype html>
2
  <html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="data:,"><title>DOOM · Hell Arena (doom-arena@11)</title><link rel="stylesheet" href="../_native/style.css"></head><body><main>
3
  <header><div><h1>DOOM · Hell Arena</h1><p>Boss practice arena · Local play · Recording and Replay</p></div><a href="../../index.html">Back to Game Lobby</a></header>
4
- <div class="layout"><section><div class="stage"><canvas width="854" height="480" tabindex="0" aria-label="Game Screen"></canvas><div id="overlay"><div>Select a boss to start</div></div><div class="toolbar"><button id="start" class="primary">Start Challenge / Restart</button><button id="pause">Resume</button><button id="step">Step</button><button id="demo">Scripted Demo</button><button id="sample">Example Replay</button></div></div><div class="mobile"><button data-key="Q">⟲ Turn left</button><button data-key="W">↑</button><button data-key="E">Turn right ⟳</button><button data-key="A">← Strafe</button><button data-key="S">↓</button><button data-key="D">Strafe →</button><button data-key="J">Fire</button><button data-key="K">Next Weapon</button><button data-key="L">Previous Weapon</button><button data-key="Shift">Run</button></div><p id="status" role="status"></p><div class="toolbar"><button id="export">Export Current Replay</button><button id="import">Import and Replay</button><input id="file" type="file" accept=".json,application/json"></div><p class="note">Replays save inputs and seeds for deterministic playback and final-state verification. Scripted Demo uses internal state for testing and does not run RL training.</p></section>
5
  <aside><div><h2>Select Challenge</h2><label for="case">Boss</label><select id="case"></select><label for="seed">Seed</label><input id="seed" type="number" min="0" max="4294967295" value="1" step="1"></div><div><label for="difficulty">Practice Difficulty</label><select id="difficulty"><option value="0">Tier 1 (half damage)</option><option value="0.3">Tier 2</option><option value="0.5" selected>Tier 3 (Standard)</option><option value="0.8">Tier 4 (fast)</option><option value="1">Tier 5 (fast fireballs and resurrection)</option></select><p class="note">Click the screen to enable keyboard controls. Esc pauses. Double-click to lock the mouse for turning.</p><p class="note">60 Hz simulation (doom-arena@11, 300-second limit per run): 60 ticks per second. Original 35 Hz state tables, weapon timing, and movement speeds are preserved in real time: 7 of every 12 ticks execute one original tic, with at most 1/60-second error.</p><p class="note">The three difficulty tiers (doom-arena@11) use the same weapons and change timing: Easy = tier 1 (half damage and double ammo pickups); Normal = tier 3; Hard = tier 4 plus fast monsters (continuous attacks and faster projectiles from Green-Flame Barons and Fire Imps). Boss health by tier: Rocket Colossus 2600 / 6800 / 15500; Four-Legged Gun Platform 1500 / 4200 / 7000; each Green-Flame Baron 800 / 1900 / 4400; Fire Sorcerer 2500 / 7000 / 22000; Twin-Cannon Brute 1650 / 4400 / 13000; Shoulder-Cannon Skeleton 700 / 2700 / 7000. Fire Imp minions in the Fire Sorcerer and Skeleton fights have 60 HP and do not count toward victory. The Brute and Skeleton fights offer only the shotgun and chaingun.</p><p class="note">Shoulder-Cannon Skeleton: punches at close range (6–60) and launches homing missiles from afar. A missile can turn at most 16.875° every 4 original tics (about 0.114 seconds); it has no splash damage, and pillars can break its pursuit. Fire Imp fireballs can hurt the Skeleton, and it can hurt the Imps.</p><p class="note">Twin-Cannon Brute: after raising both arms for about 0.6 seconds, it fires three pairs of fireballs in a fan: toward one side, then the other, then around you. Fireballs have no splash damage; strafe to dodge. The shotgun leaves openings between its attacks, while the chaingun can keep it staggered.</p><p class="note">Fire Sorcerer: after a roughly 1.9-second casting tell, fire explodes on your position (20 direct damage plus splash) and launches you into the air. If it cannot see you at the moment of detonation, the spell misses completely; hide behind a pillar when it raises its hands. It can resurrect fallen Fire Imps; stand on a corpse to prevent resurrection.</p><p class="note">Rules tips: rocket blasts can hurt you within 128 units, so firing next to walls or pillars is dangerous. The Rocket Colossus and Four-Legged Gun Platform ignore blast splash and take only direct hits. The Platform’s gun hits instantly; break line of sight behind a pillar to stop its fire. Each chaingun or shotgun hit has a 40/256 chance to stagger it and interrupt its 20-tic (about 0.57-second) windup. The Colossus does not lead its rockets, so strafe and run (Shift+A/D) to dodge. K selects the next weapon, L the previous one.</p></div><dl></dl></aside></div>
6
- <footer></footer></main>
7
  <script src="../_native/runtime.js"></script><script src="game.js"></script><script src="draw.js"></script><script>window.GAME_MODULE=window.DoomGame;</script><script src="../_native/shell.js"></script></body></html>
 
1
  <!doctype html>
2
  <html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="data:,"><title>DOOM · Hell Arena (doom-arena@11)</title><link rel="stylesheet" href="../_native/style.css"></head><body><main>
3
  <header><div><h1>DOOM · Hell Arena</h1><p>Boss practice arena · Local play · Recording and Replay</p></div><a href="../../index.html">Back to Game Lobby</a></header>
4
+ <div class="layout"><section><div class="stage"><canvas width="854" height="480" tabindex="0" aria-label="Game Screen"></canvas><div id="overlay"><div>Select a boss to start</div></div><div class="toolbar"><button id="start" class="primary">Start Challenge / Restart</button><button id="pause">Resume</button><button id="step">Step</button><button id="demo">Scripted Demo</button></div></div><div class="mobile"><button data-key="Q">⟲ Turn left</button><button data-key="W">↑</button><button data-key="E">Turn right ⟳</button><button data-key="A">← Strafe</button><button data-key="S">↓</button><button data-key="D">Strafe →</button><button data-key="J">Fire</button><button data-key="K">Next Weapon</button><button data-key="L">Previous Weapon</button><button data-key="Shift">Run</button></div><p id="status" role="status"></p><div class="toolbar"><button id="export">Export Current Replay</button><button id="import">Import and Replay</button><input id="file" type="file" accept=".json,application/json"></div><p class="note">Replays save inputs and seeds for deterministic playback and final-state verification. Scripted Demo uses internal state for testing and does not run RL training.</p></section>
5
  <aside><div><h2>Select Challenge</h2><label for="case">Boss</label><select id="case"></select><label for="seed">Seed</label><input id="seed" type="number" min="0" max="4294967295" value="1" step="1"></div><div><label for="difficulty">Practice Difficulty</label><select id="difficulty"><option value="0">Tier 1 (half damage)</option><option value="0.3">Tier 2</option><option value="0.5" selected>Tier 3 (Standard)</option><option value="0.8">Tier 4 (fast)</option><option value="1">Tier 5 (fast fireballs and resurrection)</option></select><p class="note">Click the screen to enable keyboard controls. Esc pauses. Double-click to lock the mouse for turning.</p><p class="note">60 Hz simulation (doom-arena@11, 300-second limit per run): 60 ticks per second. Original 35 Hz state tables, weapon timing, and movement speeds are preserved in real time: 7 of every 12 ticks execute one original tic, with at most 1/60-second error.</p><p class="note">The three difficulty tiers (doom-arena@11) use the same weapons and change timing: Easy = tier 1 (half damage and double ammo pickups); Normal = tier 3; Hard = tier 4 plus fast monsters (continuous attacks and faster projectiles from Green-Flame Barons and Fire Imps). Boss health by tier: Rocket Colossus 2600 / 6800 / 15500; Four-Legged Gun Platform 1500 / 4200 / 7000; each Green-Flame Baron 800 / 1900 / 4400; Fire Sorcerer 2500 / 7000 / 22000; Twin-Cannon Brute 1650 / 4400 / 13000; Shoulder-Cannon Skeleton 700 / 2700 / 7000. Fire Imp minions in the Fire Sorcerer and Skeleton fights have 60 HP and do not count toward victory. The Brute and Skeleton fights offer only the shotgun and chaingun.</p><p class="note">Shoulder-Cannon Skeleton: punches at close range (6–60) and launches homing missiles from afar. A missile can turn at most 16.875° every 4 original tics (about 0.114 seconds); it has no splash damage, and pillars can break its pursuit. Fire Imp fireballs can hurt the Skeleton, and it can hurt the Imps.</p><p class="note">Twin-Cannon Brute: after raising both arms for about 0.6 seconds, it fires three pairs of fireballs in a fan: toward one side, then the other, then around you. Fireballs have no splash damage; strafe to dodge. The shotgun leaves openings between its attacks, while the chaingun can keep it staggered.</p><p class="note">Fire Sorcerer: after a roughly 1.9-second casting tell, fire explodes on your position (20 direct damage plus splash) and launches you into the air. If it cannot see you at the moment of detonation, the spell misses completely; hide behind a pillar when it raises its hands. It can resurrect fallen Fire Imps; stand on a corpse to prevent resurrection.</p><p class="note">Rules tips: rocket blasts can hurt you within 128 units, so firing next to walls or pillars is dangerous. The Rocket Colossus and Four-Legged Gun Platform ignore blast splash and take only direct hits. The Platform’s gun hits instantly; break line of sight behind a pillar to stop its fire. Each chaingun or shotgun hit has a 40/256 chance to stagger it and interrupt its 20-tic (about 0.57-second) windup. The Colossus does not lead its rockets, so strafe and run (Shift+A/D) to dodge. K selects the next weapon, L the previous one.</p></div><dl></dl></aside></div>
6
+ <footer>All rights in the original game, including its title, characters, artwork, audio, and trademarks, remain exclusively with its original game companies and rights holders. GameDojo is an independent reconstruction for non-commercial scientific research.</footer></main>
7
  <script src="../_native/runtime.js"></script><script src="game.js"></script><script src="draw.js"></script><script>window.GAME_MODULE=window.DoomGame;</script><script src="../_native/shell.js"></script></body></html>
environments/games/web/games/genshin_remake/app3d.js CHANGED
@@ -43,7 +43,6 @@
43
  $('#pause').onclick=()=>{if(session.game.outcome)return;running=!running;clear();if(running){canvas.focus();if(!replay&&!automatic)status('Battle resumed · Click the screen to lock the mouse; move it to turn the camera');}else{if(locked())document.exitPointerLock();status(replay||automatic?'Paused · Click Resume':'Paused · Click the screen to resume');}draw();};
44
  $('#step').onclick=()=>{running=false;if(replay)replayTick();else session.tick();draw();};
45
  function openReplay(data){N.Session.import(M,data);reset(data.case,data.seed,data.difficulty);replay=data;replayIndex=0;running=true;$('#case').value=data.case;status('Replay validated · Playing');draw();}
46
- $('#sample').onclick=()=>{try{const data=M.example?.[$('#case').value];if(!data)throw Error('No built-in replay for this encounter; try Verify Script first');openReplay(data);}catch(error){status(error.message);}};
47
  function replayTick(){if(replayIndex<replay.inputs.length){const input=replay.inputs[replayIndex++];session.tick(input[0],input[1]);}if(replayIndex===replay.inputs.length){running=false;status('Replay Finished · '+(N.hash(session.state())===replay.finalHash?'Final state matches':'Final state mismatch'));}}
48
  $('#export').onclick=()=>{const data=session.export(),url=URL.createObjectURL(new Blob([JSON.stringify(data)],{type:'application/json'}));const link=document.createElement('a');link.href=url;link.download=M.id+'-'+session.seed+'.json';link.click();setTimeout(()=>URL.revokeObjectURL(url),1000);status('Current replay exported');};
49
  $('#import').onclick=()=>$('#file').click();$('#file').onchange=async event=>{const file=event.target.files[0];if(!file)return;try{if(file.size>12e6)throw Error('Replay file is too large');openReplay(JSON.parse(await file.text()));}catch(error){status('Import failed: '+error.message);}event.target.value='';};
 
43
  $('#pause').onclick=()=>{if(session.game.outcome)return;running=!running;clear();if(running){canvas.focus();if(!replay&&!automatic)status('Battle resumed · Click the screen to lock the mouse; move it to turn the camera');}else{if(locked())document.exitPointerLock();status(replay||automatic?'Paused · Click Resume':'Paused · Click the screen to resume');}draw();};
44
  $('#step').onclick=()=>{running=false;if(replay)replayTick();else session.tick();draw();};
45
  function openReplay(data){N.Session.import(M,data);reset(data.case,data.seed,data.difficulty);replay=data;replayIndex=0;running=true;$('#case').value=data.case;status('Replay validated · Playing');draw();}
 
46
  function replayTick(){if(replayIndex<replay.inputs.length){const input=replay.inputs[replayIndex++];session.tick(input[0],input[1]);}if(replayIndex===replay.inputs.length){running=false;status('Replay Finished · '+(N.hash(session.state())===replay.finalHash?'Final state matches':'Final state mismatch'));}}
47
  $('#export').onclick=()=>{const data=session.export(),url=URL.createObjectURL(new Blob([JSON.stringify(data)],{type:'application/json'}));const link=document.createElement('a');link.href=url;link.download=M.id+'-'+session.seed+'.json';link.click();setTimeout(()=>URL.revokeObjectURL(url),1000);status('Current replay exported');};
48
  $('#import').onclick=()=>$('#file').click();$('#file').onchange=async event=>{const file=event.target.files[0];if(!file)return;try{if(file.size>12e6)throw Error('Replay file is too large');openReplay(JSON.parse(await file.text()));}catch(error){status('Import failed: '+error.message);}event.target.value='';};
environments/games/web/games/genshin_remake/compact_actions.json CHANGED
@@ -2,7 +2,7 @@
2
  "schema": "bossbench/compact-actions@1",
3
  "game": "genshin_remake",
4
  "version": "genshin-compact@2",
5
- "note": "9 x 12 x 9 = 972 actions, each held for one 200 ms packet. Mouse: 1 dx count turns the camera 0.0025 rad = 0.143 deg while unlocked (a locked camera follows the target); a POSITIVE dx turns the view RIGHT on screen (genshin-bosses@8; the engine subtracts mouse dx from yaw), so left_* options carry dx < 0 and labels name what the player sees. 1 dy count lowers the aim pitch by 0.002 rad = 0.115 deg; the pitch persists and only steers unlocked bow and catalyst shots. Mouse is spread over the packet's 12 ticks, so a shot released at tick 3 (LMB tapped in sub-step 1) sees a quarter of that packet's turn and pitch. The game reads J, LMB and the archer's K as held keys; E, Q, R, L, Shift, Space and the other characters' K as presses, so those are taps. Lock (R) shares the view head with the swaps (E/Q) so that at most four keys are ever held in a sub-step (two move keys + one action key + one view key). A free-aim weak-point shot in one packet = view lock or lock_left_18 (unlock; the 18 deg turn is a quarter-packet correction of about 4.5 deg for the right-shoulder arrow origin) + action shot / shot_up / shot_down. charge_release finishes a charge inside the packet (the reference script releases a full bow charge mid-packet; a tap there fires a few ticks short of full and loses the Pyro arrow). The camera keeps 5 and 45 degree turns; 18 degrees is reached in steps.",
6
  "heads": [
7
  {
8
  "name": "move",
 
2
  "schema": "bossbench/compact-actions@1",
3
  "game": "genshin_remake",
4
  "version": "genshin-compact@2",
5
+ "note": "A 200 ms packet combines movement, view or character switching, and one action. Positive mouse dx turns right and positive dy lowers the aim. The unlocked camera applies mouse movement over the packet. Charge and release actions follow the listed sub-step timings.",
6
  "heads": [
7
  {
8
  "name": "move",
environments/games/web/games/genshin_remake/index.html CHANGED
@@ -1,7 +1,7 @@
1
  <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="data:,"><title>Genshin Impact · Boss Challenge</title><link rel="stylesheet" href="style3d.css"></head><body><main>
2
  <header><div><div class="eyebrow">Boss Trials · 60 Hz · Original procedural art</div><h1>Genshin Impact · Boss Challenge</h1><p>A four-character elemental party faces six bosses: a floating cube with an exposed core and revival crystals; a cannon-backed automaton with paralyzable weak points; a water summoner whose mimics must be defeated; a masked swordsman with guards and clones; an icy wolf with pillars and pups; and an ice-and-fire sorceress with temperature and cocoon mechanics.</p></div><a href="../../index.html">Back to Game Lobby ↗</a></header>
3
- <div class="layout"><section><div class="stage"><canvas width="854" height="480" tabindex="0" aria-label="Genshin Impact 3D boss battle screen"></canvas><div id="overlay"><div><strong>Are You Ready?</strong><span>Click Start Challenge</span></div></div><div class="toolbar"><button id="start" class="primary">Start Challenge / Restart</button><button id="pause">Resume</button><button id="step">Step</button><button id="demo">Verify Script</button><button id="sample">Winning Replay</button></div></div>
4
  <div class="mobile"><button data-key="W">↑</button><button data-key="A">←</button><button data-key="S">↓</button><button data-key="D">→</button><button data-key="J">Attack</button><button data-key="LMB">Charge</button><button data-key="K">Skill</button><button data-key="L">Burst</button><button data-key="Q">Switch</button><button data-key="Shift">Dodge</button><button data-key="Space">Jump</button><button data-key="R">Lock</button></div><p id="status" role="status"></p><div class="toolbar record-toolbar"><button id="export">Export Current Replay</button><button id="import">Import and Replay</button><input id="file" type="file" accept=".json,application/json"></div><p class="note">Verify Script reads internal state to test the mechanics. Its win rate does not represent human or vision-model performance. Boss health, attack power, and difficulty tiers are calibrated for BossBench, not taken from the original game.</p></section>
5
  <aside><div><h2>Challenge Settings</h2><label for="case">Boss</label><select id="case"></select><label for="seed">Seed</label><input id="seed" type="number" min="0" max="4294967295" step="1" value="1"></div><div><label for="difficulty">Difficulty Tier</label><select id="difficulty"><option value="0.2">Easy (d=0.2)</option><option value="0.5" selected>Normal (d=0.5)</option><option value="0.8">Hard (d=0.8)</option></select><p class="note">In battle, click the screen to lock the mouse. Moving the mouse then turns the camera without holding a button. Left-click charges a heavy attack; right-click uses a skill. R toggles target lock (free camera at the start). Press Esc to unlock the mouse and pause; click the screen to resume (this click does not attack). If pointer lock is unavailable, hold a mouse button and drag to turn the camera.</p></div><dl></dl></aside></div>
6
- <footer></footer></main>
7
  <script src="../_native/runtime.js"></script><script src="../_boss3d/vendor/three.min.js"></script><script src="renderer3d.js"></script><script src="game.js"></script><script src="boss_common.js"></script><script src="boss_kenki.js"></script><script src="boss_andrius.js"></script><script src="boss_signora.js"></script><script src="art_expansion.js"></script><script src="draw.js"></script><script>window.GAME_MODULE=GenshinGame;</script><script src="app3d.js"></script></body></html>
 
1
  <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="data:,"><title>Genshin Impact · Boss Challenge</title><link rel="stylesheet" href="style3d.css"></head><body><main>
2
  <header><div><div class="eyebrow">Boss Trials · 60 Hz · Original procedural art</div><h1>Genshin Impact · Boss Challenge</h1><p>A four-character elemental party faces six bosses: a floating cube with an exposed core and revival crystals; a cannon-backed automaton with paralyzable weak points; a water summoner whose mimics must be defeated; a masked swordsman with guards and clones; an icy wolf with pillars and pups; and an ice-and-fire sorceress with temperature and cocoon mechanics.</p></div><a href="../../index.html">Back to Game Lobby ↗</a></header>
3
+ <div class="layout"><section><div class="stage"><canvas width="854" height="480" tabindex="0" aria-label="Genshin Impact 3D boss battle screen"></canvas><div id="overlay"><div><strong>Are You Ready?</strong><span>Click Start Challenge</span></div></div><div class="toolbar"><button id="start" class="primary">Start Challenge / Restart</button><button id="pause">Resume</button><button id="step">Step</button><button id="demo">Verify Script</button></div></div>
4
  <div class="mobile"><button data-key="W">↑</button><button data-key="A">←</button><button data-key="S">↓</button><button data-key="D">→</button><button data-key="J">Attack</button><button data-key="LMB">Charge</button><button data-key="K">Skill</button><button data-key="L">Burst</button><button data-key="Q">Switch</button><button data-key="Shift">Dodge</button><button data-key="Space">Jump</button><button data-key="R">Lock</button></div><p id="status" role="status"></p><div class="toolbar record-toolbar"><button id="export">Export Current Replay</button><button id="import">Import and Replay</button><input id="file" type="file" accept=".json,application/json"></div><p class="note">Verify Script reads internal state to test the mechanics. Its win rate does not represent human or vision-model performance. Boss health, attack power, and difficulty tiers are calibrated for BossBench, not taken from the original game.</p></section>
5
  <aside><div><h2>Challenge Settings</h2><label for="case">Boss</label><select id="case"></select><label for="seed">Seed</label><input id="seed" type="number" min="0" max="4294967295" step="1" value="1"></div><div><label for="difficulty">Difficulty Tier</label><select id="difficulty"><option value="0.2">Easy (d=0.2)</option><option value="0.5" selected>Normal (d=0.5)</option><option value="0.8">Hard (d=0.8)</option></select><p class="note">In battle, click the screen to lock the mouse. Moving the mouse then turns the camera without holding a button. Left-click charges a heavy attack; right-click uses a skill. R toggles target lock (free camera at the start). Press Esc to unlock the mouse and pause; click the screen to resume (this click does not attack). If pointer lock is unavailable, hold a mouse button and drag to turn the camera.</p></div><dl></dl></aside></div>
6
+ <footer>All rights in the original game, including its title, characters, artwork, audio, and trademarks, remain exclusively with its original game companies and rights holders. GameDojo is an independent reconstruction for non-commercial scientific research.</footer></main>
7
  <script src="../_native/runtime.js"></script><script src="../_boss3d/vendor/three.min.js"></script><script src="renderer3d.js"></script><script src="game.js"></script><script src="boss_common.js"></script><script src="boss_kenki.js"></script><script src="boss_andrius.js"></script><script src="boss_signora.js"></script><script src="art_expansion.js"></script><script src="draw.js"></script><script>window.GAME_MODULE=GenshinGame;</script><script src="app3d.js"></script></body></html>
environments/games/web/games/hexen2_remake/boss_eidolon.js CHANGED
@@ -213,8 +213,7 @@
213
  const r = b.yaw * Q.DEG, s = SPEED * b.scale * 20; return [Math.cos(r) * s, Math.sin(r) * s, 0]; },
214
  // Darken waits until Eidolon and the orb are both ahead of the player from under 1500 units: stand off to the side of the line between them, where one look takes in both.
215
  goal(g, b) {
216
- // The roar calls the storm down round the arena centre (strike(), radius 1000): only the corners, past that radius, are almost never hit (tools/strike_map.js; stepping out
217
- // to r = 1000 still lost 4 of 16 normal fights to it). Go to the corner of the player's quadrant; the roar is on the HUD, so this reads only what is shown.
218
  if (b.state === 'preroar' || b.state === 'roar') { const p = g.p.o; return [p[0] < 1200 ? 180 : 2220, p[1] < 1200 ? 180 : 2220, 0]; }
219
  // The small form must take one more hit past its lockout to fake death, and a purifier bolt at 2000 units lands 2 s late on a walking target: close to 800.
220
  // With the orb on the line to it, a shot would break the orb instead (one more roar): step 300 to the side away from the orb.
 
213
  const r = b.yaw * Q.DEG, s = SPEED * b.scale * 20; return [Math.cos(r) * s, Math.sin(r) * s, 0]; },
214
  // Darken waits until Eidolon and the orb are both ahead of the player from under 1500 units: stand off to the side of the line between them, where one look takes in both.
215
  goal(g, b) {
216
+ // Retreat to the corner of the current quadrant during the storm.
 
217
  if (b.state === 'preroar' || b.state === 'roar') { const p = g.p.o; return [p[0] < 1200 ? 180 : 2220, p[1] < 1200 ? 180 : 2220, 0]; }
218
  // The small form must take one more hit past its lockout to fake death, and a purifier bolt at 2000 units lands 2 s late on a walking target: close to 800.
219
  // With the orb on the line to it, a shot would break the orb instead (one more roar): step 300 to the side away from the orb.
environments/games/web/games/hexen2_remake/boss_praevus.js CHANGED
@@ -122,8 +122,7 @@
122
  if (b.fr === 12) set(b, 'run');
123
  },
124
  };
125
- // Calibrated on the scripted controller, seeds 1-32 (the original's 5000 / 6000 / 8000 for skill 0 / 1 / 3 would run past 300 s with ~6 s untouchable recharge x4 and the teleports):
126
- // easy 800 -> 32/32, 20 in 20-30 s; normal 2000 -> 32/32, 30 in 45-90 s; hard 4300 -> 32/32, 30 in 150-240 s.
127
  Q.HP.praevus = [1000, 2000, 4300];
128
  Q.CASES.push({ id: 'hexen2/star_volley_sorcerer', name: 'Star Volley Sorcerer', arena: 'praevus' });
129
  const B = Q.brush;
 
122
  if (b.fr === 12) set(b, 'run');
123
  },
124
  };
125
+ // Health scales across difficulty tiers.
 
126
  Q.HP.praevus = [1000, 2000, 4300];
127
  Q.CASES.push({ id: 'hexen2/star_volley_sorcerer', name: 'Star Volley Sorcerer', arena: 'praevus' });
128
  const B = Q.brush;
environments/games/web/games/hexen2_remake/compact_actions.json CHANGED
@@ -2,7 +2,7 @@
2
  "schema": "bossbench/compact-actions@1",
3
  "game": "hexen2_remake",
4
  "version": "hexen2-compact@1",
5
- "note": "ViZDoom-style buttons for the first-person arena: 8-way movement with run held (the reference controller runs whenever it moves, 88% of packets), yaw by fixed angles, a small pitch head (the flying rider and the grown serpent sit above the eye line), and one head for attack / next weapon / previous weapon, which never happen in the same packet (a weapon change blocks the trigger for its 0.3 s select). Mouse: 1 count = 0.066 deg (sensitivity 3 x m_yaw 0.022), positive dx turns right, positive dy looks down. Jump, crouch and keyboard turning are left out: the reference controller uses none of them in 7246 recorded packets. 9 x 9 x 3 x 4 = 972 actions.",
6
  "heads": [
7
  {
8
  "name": "move",
 
2
  "schema": "bossbench/compact-actions@1",
3
  "game": "hexen2_remake",
4
  "version": "hexen2-compact@1",
5
+ "note": "A 200 ms packet combines eight-way running, yaw, pitch, and one weapon action. One mouse count is 0.066 degrees. Positive dx turns right and positive dy looks down.",
6
  "heads": [
7
  {
8
  "name": "move",
environments/games/web/games/hexen2_remake/index.html CHANGED
@@ -1,7 +1,7 @@
1
  <!doctype html>
2
  <html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="data:,"><title>Hexen II · the Four Horsemen and Eidolon (hexen2-arena@3)</title><link rel="stylesheet" href="../_native/style.css"><style>body[data-game=hexen2_remake]{--bg:#17131c;--panel:#241d2b;--edge:#5c4a68;--accent:#d8a860}</style></head><body><main>
3
  <header><div><h1>Hexen II · the Four Horsemen and Eidolon</h1><p>1997 original rules (independently reimplemented from the uHexen2 GPL source) · native 60 Hz · first-person WebGL · armored swordsman</p></div><a href="../../index.html">Back to Game Lobby</a></header>
4
- <div class="layout"><section><div class="stage"><canvas width="854" height="480" tabindex="0" aria-label="Game Screen"></canvas><div id="overlay"><div>Select a boss to start</div></div><div class="toolbar"><button id="start" class="primary">Start Challenge / Restart</button><button id="pause">Resume</button><button id="step">Step</button><button id="demo">Scripted Demo</button><button id="sample">Example Replay</button></div></div><div class="mobile"><button data-key="Q">⟲ Turn left</button><button data-key="W">↑</button><button data-key="E">Turn right ⟳</button><button data-key="A">← Strafe</button><button data-key="S">↓</button><button data-key="D">Strafe →</button><button data-key="Space">Jump</button><button data-key="J">Attack</button><button data-key="K">Switch Weapon</button><button data-key="Shift">Run</button></div><p id="status" role="status"></p><div class="toolbar"><button id="export">Export Current Replay</button><button id="import">Import and Replay</button><input id="file" type="file" accept=".json,application/json"></div><p class="note">Replays save inputs and seeds for deterministic playback and final-state verification. Scripted Demo uses internal state for testing and does not run RL training.</p></section>
5
  <aside><div><h2>Select Challenge</h2><label for="case">Boss</label><select id="case"></select><label for="seed">Seed</label><input id="seed" type="number" min="0" max="4294967295" value="1" step="1"></div><div><label for="difficulty">Difficulty</label><select id="difficulty"></select><p class="note">Easy uses original skill 0, Normal skill 1, and Hard skill 3; each tier also has its own boss health, damage, and attack timing.</p><p class="note">Click the screen to enable keyboard controls. Double-click to lock the mouse for free look. Esc pauses.</p><p class="note">Original rules tip: Famine’s soul pull requires two clear lines of sight; hide behind the granary to break it. When wounded, Famine more often reels and blinks to the nearest waypoint. The Purifier Staff consumes one green and one blue mana per shot; collect mana crystals at the arena edge when supplies run low.</p></div><dl></dl></aside></div>
6
- <footer></footer></main>
7
  <script src="../_native/runtime.js"></script><script src="../_boss3d/vendor/three.min.js"></script><script src="h2core.js"></script><script src="h2player.js"></script><script src="h2boss.js"></script><script src="boss_famine.js"></script><script src="boss_death.js"></script><script src="boss_pestilence.js"></script><script src="boss_war.js"></script><script src="boss_eidolon.js"></script><script src="boss_praevus.js"></script><script src="game.js"></script><script src="scripted.js"></script><script src="telegraph.js"></script><script src="renderer3d.js"></script><script src="fx3d.js"></script><script src="fx_draw.js"></script><script src="art_famine.js"></script><script src="art_death.js"></script><script src="art_pestilence.js"></script><script src="art_war.js"></script><script src="art_eidolon.js"></script><script src="art_praevus.js"></script><script src="draw.js"></script><script src="input-hold.js"></script><script>window.GAME_MODULE=window.Hexen2Game;</script><script src="../_native/shell.js"></script></body></html>
 
1
  <!doctype html>
2
  <html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="data:,"><title>Hexen II · the Four Horsemen and Eidolon (hexen2-arena@3)</title><link rel="stylesheet" href="../_native/style.css"><style>body[data-game=hexen2_remake]{--bg:#17131c;--panel:#241d2b;--edge:#5c4a68;--accent:#d8a860}</style></head><body><main>
3
  <header><div><h1>Hexen II · the Four Horsemen and Eidolon</h1><p>1997 original rules (independently reimplemented from the uHexen2 GPL source) · native 60 Hz · first-person WebGL · armored swordsman</p></div><a href="../../index.html">Back to Game Lobby</a></header>
4
+ <div class="layout"><section><div class="stage"><canvas width="854" height="480" tabindex="0" aria-label="Game Screen"></canvas><div id="overlay"><div>Select a boss to start</div></div><div class="toolbar"><button id="start" class="primary">Start Challenge / Restart</button><button id="pause">Resume</button><button id="step">Step</button><button id="demo">Scripted Demo</button></div></div><div class="mobile"><button data-key="Q">⟲ Turn left</button><button data-key="W">↑</button><button data-key="E">Turn right ⟳</button><button data-key="A">← Strafe</button><button data-key="S">↓</button><button data-key="D">Strafe →</button><button data-key="Space">Jump</button><button data-key="J">Attack</button><button data-key="K">Switch Weapon</button><button data-key="Shift">Run</button></div><p id="status" role="status"></p><div class="toolbar"><button id="export">Export Current Replay</button><button id="import">Import and Replay</button><input id="file" type="file" accept=".json,application/json"></div><p class="note">Replays save inputs and seeds for deterministic playback and final-state verification. Scripted Demo uses internal state for testing and does not run RL training.</p></section>
5
  <aside><div><h2>Select Challenge</h2><label for="case">Boss</label><select id="case"></select><label for="seed">Seed</label><input id="seed" type="number" min="0" max="4294967295" value="1" step="1"></div><div><label for="difficulty">Difficulty</label><select id="difficulty"></select><p class="note">Easy uses original skill 0, Normal skill 1, and Hard skill 3; each tier also has its own boss health, damage, and attack timing.</p><p class="note">Click the screen to enable keyboard controls. Double-click to lock the mouse for free look. Esc pauses.</p><p class="note">Original rules tip: Famine’s soul pull requires two clear lines of sight; hide behind the granary to break it. When wounded, Famine more often reels and blinks to the nearest waypoint. The Purifier Staff consumes one green and one blue mana per shot; collect mana crystals at the arena edge when supplies run low.</p></div><dl></dl></aside></div>
6
+ <footer>All rights in the original game, including its title, characters, artwork, audio, and trademarks, remain exclusively with its original game companies and rights holders. GameDojo is an independent reconstruction for non-commercial scientific research.</footer></main>
7
  <script src="../_native/runtime.js"></script><script src="../_boss3d/vendor/three.min.js"></script><script src="h2core.js"></script><script src="h2player.js"></script><script src="h2boss.js"></script><script src="boss_famine.js"></script><script src="boss_death.js"></script><script src="boss_pestilence.js"></script><script src="boss_war.js"></script><script src="boss_eidolon.js"></script><script src="boss_praevus.js"></script><script src="game.js"></script><script src="scripted.js"></script><script src="telegraph.js"></script><script src="renderer3d.js"></script><script src="fx3d.js"></script><script src="fx_draw.js"></script><script src="art_famine.js"></script><script src="art_death.js"></script><script src="art_pestilence.js"></script><script src="art_war.js"></script><script src="art_eidolon.js"></script><script src="art_praevus.js"></script><script src="draw.js"></script><script src="input-hold.js"></script><script>window.GAME_MODULE=window.Hexen2Game;</script><script src="../_native/shell.js"></script></body></html>
environments/games/web/games/hollowknight_remake/bosses/hollow_vessel.js CHANGED
@@ -1,6 +1,6 @@
1
  // Boss "hollow_vessel" - hollow nail-bearer (2D). Behaviour follows the source fight's "IK Control" FSM (Idle walk +
2
  // counter, Attack Choice V3, Air Dash?, To Attack?, Damage Response), its "Stun Control" (combo 9 in < 1 s, 12 hits
3
- // max) and the blob cascades / balloons of "Shake Token Control" / "Spawn Balloon". Numbers: specs/hollow_vessel.yaml.
4
  // Pivot = middle of the feet (y = 0 on the floor); the source room is as wide as our arena, so x maps 1:1.
5
  (function (g) {
6
  var BB = g.BB;
 
1
  // Boss "hollow_vessel" - hollow nail-bearer (2D). Behaviour follows the source fight's "IK Control" FSM (Idle walk +
2
  // counter, Attack Choice V3, Air Dash?, To Attack?, Damage Response), its "Stun Control" (combo 9 in < 1 s, 12 hits
3
+ // max) and the blob cascades / balloons of "Shake Token Control" / "Spawn Balloon". Numbers: specs/hollow_vessel.spec.js.
4
  // Pivot = middle of the feet (y = 0 on the floor); the source room is as wide as our arena, so x maps 1:1.
5
  (function (g) {
6
  var BB = g.BB;
environments/games/web/games/hollowknight_remake/bosses/iron_bulwark.js CHANGED
@@ -1,6 +1,6 @@
1
  // Boss "iron_bulwark" - armoured mace-bearer (2D). Behaviour follows the source fight's "FalseyControl" FSM and
2
  // "Check_Health" (armour that resets every stage, a soft rider exposed after each break); every move number comes
3
- // from specs/iron_bulwark.yaml. Pivot = the middle of his feet (y = 0 on the floor).
4
  // Horizontal source distances / speeds are multiplied by SX (source pivot range 27 u -> 19.3 u here) [hand].
5
  (function (g) {
6
  var BB = g.BB;
 
1
  // Boss "iron_bulwark" - armoured mace-bearer (2D). Behaviour follows the source fight's "FalseyControl" FSM and
2
  // "Check_Health" (armour that resets every stage, a soft rider exposed after each break); every move number comes
3
+ // from specs/iron_bulwark.spec.js. Pivot = the middle of his feet (y = 0 on the floor).
4
  // Horizontal source distances / speeds are multiplied by SX (source pivot range 27 u -> 19.3 u here) [hand].
5
  (function (g) {
6
  var BB = g.BB;
environments/games/web/games/hollowknight_remake/bosses/lumen_moth.js CHANGED
@@ -1,5 +1,5 @@
1
  // Boss "lumen_moth" - radiant moth deity (2D). Source fight: The Radiance (Hollow Knight, Dream No More).
2
- // There is no game-data dump of this fight (specs/lumen_moth.yaml header): the attack list, counts, phase damage
3
  // shares and mask damage follow the wiki / guide descriptions [web]; state names follow the game's own FSM names as
4
  // patched by a Godhome mod (Attack Choices "A1 Choice" / "A2 Choice", Attack Commands "Orb Antic", "Nail Fan",
5
  // "EB 1".., "Beam Sweep L/R", Phase Control) [mod]; every timing, speed and size is [hand] and lives in the spec.
 
1
  // Boss "lumen_moth" - radiant moth deity (2D). Source fight: The Radiance (Hollow Knight, Dream No More).
2
+ // There is no game-data dump of this fight (specs/lumen_moth.spec.js header): the attack list, counts, phase damage
3
  // shares and mask damage follow the wiki / guide descriptions [web]; state names follow the game's own FSM names as
4
  // patched by a Godhome mod (Attack Choices "A1 Choice" / "A2 Choice", Attack Commands "Orb Antic", "Nail Fan",
5
  // "EB 1".., "Beam Sweep L/R", Phase Control) [mod]; every timing, speed and size is [hand] and lives in the spec.
environments/games/web/games/hollowknight_remake/bosses/needle_warden.js CHANGED
@@ -1,5 +1,5 @@
1
  // Boss "needle_warden" - agile needle duelist (2D). Behaviour = the source fight's PlayMaker "Control" FSM,
2
- // re-implemented state by state; every move timing / speed comes from specs/needle_warden.yaml (the Boss Spec),
3
  // every other number is marked [data] (read from the game files) or [hand].
4
  // Positions are the boss pivot in arena-local units; the pivot sits 1.55 u above her feet.
5
  (function (g) {
 
1
  // Boss "needle_warden" - agile needle duelist (2D). Behaviour = the source fight's PlayMaker "Control" FSM,
2
+ // re-implemented state by state; every move timing / speed comes from specs/needle_warden.spec.js (the Boss Spec),
3
  // every other number is marked [data] (read from the game files) or [hand].
4
  // Positions are the boss pivot in arena-local units; the pivot sits 1.55 u above her feet.
5
  (function (g) {
environments/games/web/games/hollowknight_remake/bosses/pale_vessel.js CHANGED
@@ -1,7 +1,7 @@
1
  // Boss "pale_vessel" - four-phase nail-bearer (2D). Behaviour follows the source fight's "Control" FSM (Idle Stance,
2
  // Choice P1-P4 SendRandomEventV3 tables, Try Slash / Walk, Tele, Counter, DStab + plumes, SmallShot, ChestShot, Puppet,
3
  // SelfStab, Roars), its "Phase Control" (HP 750 / 400 / 0 of 1000 -> heals 250) and "Stun Control" (combo 10 in < 1 s,
4
- // 12 hits, 5 stuns, off from phase 3). Numbers: specs/pale_vessel.yaml.
5
  // Geometry: source room x 24.66..65.66 -> 0..W (SX on x positions, x speeds and x sizes); y unscaled, body bottom = y.
6
  // HP model: max_hp = phases 1-3 (k.hp) + phase 4 (k.p4) and hp only ever goes down, so the verifier's 1 - hp/max_hp stays
7
  // monotone; the source "heal to 250" is the p4 block becoming damageable after the phase-4 roar.
 
1
  // Boss "pale_vessel" - four-phase nail-bearer (2D). Behaviour follows the source fight's "Control" FSM (Idle Stance,
2
  // Choice P1-P4 SendRandomEventV3 tables, Try Slash / Walk, Tele, Counter, DStab + plumes, SmallShot, ChestShot, Puppet,
3
  // SelfStab, Roars), its "Phase Control" (HP 750 / 400 / 0 of 1000 -> heals 250) and "Stun Control" (combo 10 in < 1 s,
4
+ // 12 hits, 5 stuns, off from phase 3). Numbers: specs/pale_vessel.spec.js.
5
  // Geometry: source room x 24.66..65.66 -> 0..W (SX on x positions, x speeds and x sizes); y unscaled, body bottom = y.
6
  // HP model: max_hp = phases 1-3 (k.hp) + phase 4 (k.p4) and hp only ever goes down, so the verifier's 1 - hp/max_hp stays
7
  // monotone; the source "heal to 250" is the p4 block becoming damageable after the phase-4 roar.
environments/games/web/games/hollowknight_remake/bosses/sickle_sisters.js CHANGED
@@ -1,7 +1,7 @@
1
  // Boss "sickle_sisters" - three lance duelists (2D). Behaviour follows the source fight's per-lord "Mantis Lord" FSM
2
  // (Attack Choice V3: Dash / Dstab / Throw, High Throw when the player hugs a wall or flies high), the "Battle Sub"
3
  // controller that drives the last two together (7 choreographies, V3) and the boomerang blade's "Control" FSM.
4
- // Numbers: specs/sickle_sisters.yaml. Geometry: source cage x 17..43 -> 0..W (SX on x positions / x speeds / x
5
  // offsets), floor y 6.08 -> 0; a lord's source pivot y maps to body-bottom y = pivot - 8.99 (Land Y puts her feet on it).
6
  (function (g) {
7
  var BB = g.BB;
 
1
  // Boss "sickle_sisters" - three lance duelists (2D). Behaviour follows the source fight's per-lord "Mantis Lord" FSM
2
  // (Attack Choice V3: Dash / Dstab / Throw, High Throw when the player hugs a wall or flies high), the "Battle Sub"
3
  // controller that drives the last two together (7 choreographies, V3) and the boomerang blade's "Control" FSM.
4
+ // Numbers: specs/sickle_sisters.spec.js. Geometry: source cage x 17..43 -> 0..W (SX on x positions / x speeds / x
5
  // offsets), floor y 6.08 -> 0; a lord's source pivot y maps to body-bottom y = pivot - 8.99 (Land Y puts her feet on it).
6
  (function (g) {
7
  var BB = g.BB;
environments/games/web/games/hollowknight_remake/game.js CHANGED
@@ -5,16 +5,9 @@
5
  BB.GAME = {
6
  id: 'hollowknight_remake',
7
  title: 'Hollow Knight Remake',
8
- // rule version carried by every recording / replay / media file; bump whenever a rule changes
9
- // r4 (2026-11-02): three public tiers, recalibrated needle_warden / iron_bulwark / sickle_sisters, no EXT counter
10
- // r5 (2026-11-03): hollow_vessel / pale_vessel on the tier tables; 6th case 2d/lumen_moth (The Radiance). The three
11
- // r4 cases above behave identically (their r4 replays re-run under r5 to the same verifier and final hash)
12
  rules: 'hk-arena-20261103-r5',
13
- // public difficulty tiers ( tier -> the continuous difficulty d every boss reads.
14
- // Each boss's specs/*.spec.js difficulty table lists its values at d = 0 / 0.5 / 1, i.e. exactly easy / normal / hard;
15
- // a d between two tiers interpolates. Calibrated with scripted.js against the tier time windows for all six cases
16
- // (needle_warden / iron_bulwark / sickle_sisters 2026-11-02; hollow_vessel / pale_vessel / lumen_moth 2026-11-03).
17
- // d = 1 is the hard tier of the same fights, not another source mode: no case has a gate above d 0.5.
18
  tiers: { easy: 0, normal: 0.5, hard: 1 },
19
  // clock: the source runs physics at 50 Hz, the engine at 60 Hz; every conversion goes through clock.js
20
  clock: { engine_hz: 60, source_hz: 50, rule: 'seconds unchanged; n source steps = n x 0.02 s; x f per source step = f^(5/6) per tick' },
 
5
  BB.GAME = {
6
  id: 'hollowknight_remake',
7
  title: 'Hollow Knight Remake',
8
+ // Recordings use this rule version.
 
 
 
9
  rules: 'hk-arena-20261103-r5',
10
+ // Boss values interpolate between their easy, normal, and hard configuration anchors.
 
 
 
 
11
  tiers: { easy: 0, normal: 0.5, hard: 1 },
12
  // clock: the source runs physics at 50 Hz, the engine at 60 Hz; every conversion goes through clock.js
13
  clock: { engine_hz: 60, source_hz: 50, rule: 'seconds unchanged; n source steps = n x 0.02 s; x f per source step = f^(5/6) per tick' },
environments/games/web/games/hollowknight_remake/index.html CHANGED
@@ -96,6 +96,7 @@
96
  <ul id="skilllist"></ul>
97
  </div>
98
  </div>
 
99
  </div>
100
 
101
  <!-- engine: sim core -->
 
96
  <ul id="skilllist"></ul>
97
  </div>
98
  </div>
99
+ <footer><p>All rights in the original game, including its title, characters, artwork, audio, and trademarks, remain exclusively with its original game companies and rights holders. GameDojo is an independent reconstruction for non-commercial scientific research.</p></footer>
100
  </div>
101
 
102
  <!-- engine: sim core -->
environments/games/web/games/isaac_remake/draw.js CHANGED
@@ -12,8 +12,7 @@
12
  const mk = (w, h) => { const c = document.createElement('canvas'); c.width = w; c.height = h; return c; };
13
  function cached(key, w, h, paint) {
14
  let c = cache.get(key);
15
- // willReadFrequently keeps caches in CPU memory: when the main canvas is read back every frame (bench_media capture) a
16
- // GPU-backed cache would cost a GPU->CPU copy per drawImage (measured p99 18.9 ms -> 2.6 ms; render_cost.py)
17
  if (!c) { c = mk(w, h); paint(c.getContext('2d', { willReadFrequently: true }), w, h); cache.set(key, c); }
18
  return c;
19
  }
 
12
  const mk = (w, h) => { const c = document.createElement('canvas'); c.width = w; c.height = h; return c; };
13
  function cached(key, w, h, paint) {
14
  let c = cache.get(key);
15
+ // Keep sprite caches CPU-backed for frame readback.
 
16
  if (!c) { c = mk(w, h); paint(c.getContext('2d', { willReadFrequently: true }), w, h); cache.set(key, c); }
17
  return c;
18
  }
environments/games/web/games/isaac_remake/game.js CHANGED
@@ -1,6 +1,4 @@
1
- /* The Binding of Isaac: Rebirth (The Binding of Isaac: Rebirth) Basement boss rooms, rules isaac-basement@3
2
- * (@1 = Monstro / Larry Jr. / Duke of Flies, approved 2026-11-02; @2 adds Gemini / Famine / Envy, the first three unchanged;
3
- * @3 = the reference controller's lookahead uses a synthetic RNG instead of the live generator's future rolls).
4
  * Pure simulation (Node + browser).
5
  * 60 Hz ticks (Isaac's own logic runs at 30 updates/s: one Rebirth tick = 2 ticks here).
6
  * 1 tile = 48 px (= 40 Isaac units); the 13 x 7 tile room is fully visible.
 
1
+ /* The Binding of Isaac: Rebirth basement boss rooms.
 
 
2
  * Pure simulation (Node + browser).
3
  * 60 Hz ticks (Isaac's own logic runs at 30 updates/s: one Rebirth tick = 2 ticks here).
4
  * 1 tile = 48 px (= 40 Isaac units); the 13 x 7 tile room is fully visible.
environments/games/web/games/isaac_remake/index.html CHANGED
@@ -2,8 +2,8 @@
2
  <html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="data:,"><title>The Binding of Isaac · Basement Bosses</title><link rel="stylesheet" href="../_native/style.css">
3
  <style>body[data-game=isaac_remake]{--bg:#1e1714;--panel:#2b211d;--edge:#5c4a3f;--accent:#e0a878}.build{margin:6px 0 0;padding:0;list-style:none;font-size:13px;color:var(--muted)}.build li{margin:2px 0}.build b{color:var(--paper);font-weight:600}</style></head><body><main>
4
  <header><div><h1>The Binding of Isaac · Basement Bosses</h1><p>Basement boss rooms · Isaac · Rules isaac-basement@3 · 6 bosses · Local play · Recording and replay</p></div><a href="../../index.html">Back to Game Lobby</a></header>
5
- <div class="layout"><section><div class="stage"><canvas width="854" height="480" tabindex="0" aria-label="Game Screen"></canvas><div id="overlay"><div>Select a boss to start</div></div><div class="toolbar"><button id="start" class="primary">Start Challenge / Restart</button><button id="pause">Resume</button><button id="step">Step</button><button id="demo">Scripted Demo</button><button id="sample">Example Replay</button></div></div><div class="mobile"><button data-key="W">↑</button><button data-key="A">←</button><button data-key="S">↓</button><button data-key="D">→</button><button data-key="Shift">Shoot ↑</button><button data-key="J">Shoot ←</button><button data-key="K">Shoot ↓</button><button data-key="L">Shoot →</button><button data-key="E">Bomb</button></div><p id="status" role="status"></p><div class="toolbar"><button id="export">Export Current Replay</button><button id="import">Import and Replay</button><input id="file" type="file" accept=".json,application/json"></div><p class="note">Isaac starts with three red hearts (tracked in half hearts) and one bomb. Move and fire tears independently in four directions; tears inherit some of your movement speed. The boss room stays sealed during combat. Clear the boss and remaining flies or other small enemies to open the door, reveal an item pedestal, and unlock the trapdoor. Six bosses await: Monstro, Larry Jr., Duke of Flies, Gemini, Famine, and Envy. Each has a fixed starting item build shown on the right for reproducible evaluation. Items change fire rate, damage, range, and tear behavior. Easy, Normal, and Hard increase boss health, attack frequency, and damage; on Hard, half-heart hits become full-heart hits. Replays save inputs and the seed so the fight and final state can be reproduced. The scripted demo reads internal state and issues legal key presses for verification.</p></section>
6
  <aside><div><h2>Select Challenge</h2><label for="case">Boss</label><select id="case"></select><label for="seed">Seed</label><input id="seed" type="number" min="0" max="4294967295" value="1" step="1"></div><div><label for="difficulty">Difficulty (boss health / attack rate / damage)</label><select id="difficulty"><option value="0.2">Easy 0.2</option><option value="0.5" selected>Normal 0.5</option><option value="0.8">Hard 0.8</option></select><p class="note">Click the screen to enable the keyboard. Move with WASD, shoot with arrow keys or I J K L, and place a bomb with E. Esc pauses; losing window focus pauses automatically.</p><p class="note" style="margin-bottom:0">Starting items for this fight:</p><ul class="build" id="build"></ul></div><dl></dl></aside></div>
7
- <footer></footer></main>
8
  <script src="../_native/runtime.js"></script><script src="game.js"></script><script src="draw.js"></script><script>window.GAME_MODULE=window.IsaacGame;
9
  (function(){const sel=document.querySelector('#case'),ul=document.querySelector('#build');function show(){const def=IsaacGame.cases.find(c=>c.id===sel.value)||IsaacGame.cases[0];ul.textContent='';for(const id of def.items){const it=IsaacGame.items[id],li=document.createElement('li');li.innerHTML='<b></b> · ';li.querySelector('b').textContent=it.name;li.append(it.desc);ul.appendChild(li);}}window.addEventListener('DOMContentLoaded',()=>{});setTimeout(()=>{sel.addEventListener('change',show);show();},0);})();</script><script src="../_native/shell.js"></script></body></html>
 
2
  <html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="data:,"><title>The Binding of Isaac · Basement Bosses</title><link rel="stylesheet" href="../_native/style.css">
3
  <style>body[data-game=isaac_remake]{--bg:#1e1714;--panel:#2b211d;--edge:#5c4a3f;--accent:#e0a878}.build{margin:6px 0 0;padding:0;list-style:none;font-size:13px;color:var(--muted)}.build li{margin:2px 0}.build b{color:var(--paper);font-weight:600}</style></head><body><main>
4
  <header><div><h1>The Binding of Isaac · Basement Bosses</h1><p>Basement boss rooms · Isaac · Rules isaac-basement@3 · 6 bosses · Local play · Recording and replay</p></div><a href="../../index.html">Back to Game Lobby</a></header>
5
+ <div class="layout"><section><div class="stage"><canvas width="854" height="480" tabindex="0" aria-label="Game Screen"></canvas><div id="overlay"><div>Select a boss to start</div></div><div class="toolbar"><button id="start" class="primary">Start Challenge / Restart</button><button id="pause">Resume</button><button id="step">Step</button><button id="demo">Scripted Demo</button></div></div><div class="mobile"><button data-key="W">↑</button><button data-key="A">←</button><button data-key="S">↓</button><button data-key="D">→</button><button data-key="Shift">Shoot ↑</button><button data-key="J">Shoot ←</button><button data-key="K">Shoot ↓</button><button data-key="L">Shoot →</button><button data-key="E">Bomb</button></div><p id="status" role="status"></p><div class="toolbar"><button id="export">Export Current Replay</button><button id="import">Import and Replay</button><input id="file" type="file" accept=".json,application/json"></div><p class="note">Isaac starts with three red hearts (tracked in half hearts) and one bomb. Move and fire tears independently in four directions; tears inherit some of your movement speed. The boss room stays sealed during combat. Clear the boss and remaining flies or other small enemies to open the door, reveal an item pedestal, and unlock the trapdoor. Six bosses await: Monstro, Larry Jr., Duke of Flies, Gemini, Famine, and Envy. Each has a fixed starting item build shown on the right for reproducible evaluation. Items change fire rate, damage, range, and tear behavior. Easy, Normal, and Hard increase boss health, attack frequency, and damage; on Hard, half-heart hits become full-heart hits. Replays save inputs and the seed so the fight and final state can be reproduced. The scripted demo reads internal state and issues legal key presses for verification.</p></section>
6
  <aside><div><h2>Select Challenge</h2><label for="case">Boss</label><select id="case"></select><label for="seed">Seed</label><input id="seed" type="number" min="0" max="4294967295" value="1" step="1"></div><div><label for="difficulty">Difficulty (boss health / attack rate / damage)</label><select id="difficulty"><option value="0.2">Easy 0.2</option><option value="0.5" selected>Normal 0.5</option><option value="0.8">Hard 0.8</option></select><p class="note">Click the screen to enable the keyboard. Move with WASD, shoot with arrow keys or I J K L, and place a bomb with E. Esc pauses; losing window focus pauses automatically.</p><p class="note" style="margin-bottom:0">Starting items for this fight:</p><ul class="build" id="build"></ul></div><dl></dl></aside></div>
7
+ <footer>All rights in the original game, including its title, characters, artwork, audio, and trademarks, remain exclusively with its original game companies and rights holders. GameDojo is an independent reconstruction for non-commercial scientific research.</footer></main>
8
  <script src="../_native/runtime.js"></script><script src="game.js"></script><script src="draw.js"></script><script>window.GAME_MODULE=window.IsaacGame;
9
  (function(){const sel=document.querySelector('#case'),ul=document.querySelector('#build');function show(){const def=IsaacGame.cases.find(c=>c.id===sel.value)||IsaacGame.cases[0];ul.textContent='';for(const id of def.items){const it=IsaacGame.items[id],li=document.createElement('li');li.innerHTML='<b></b> · ';li.querySelector('b').textContent=it.name;li.append(it.desc);ul.appendChild(li);}}window.addEventListener('DOMContentLoaded',()=>{});setTimeout(()=>{sel.addEventListener('change',show);show();},0);})();</script><script src="../_native/shell.js"></script></body></html>
environments/games/web/games/kirby_remake/bosses/king_dedede.js CHANGED
@@ -1,5 +1,5 @@
1
  // Boss "king_dedede": King Dedede of Kirby's Dream Land, in his ring. Four moves picked from the script's random
2
- // jumptables (walk-and-slide, jump, inhale, hammer; see specs/king_dedede.yaml). He has 10 HP and is hurt only by
3
  // a Star Bullet - the ammunition is the stars his jump and his ground swing knock loose. A hit outside the slide and
4
  // the hammer swing freezes him for 30 frames (each hit restarts it); during those two he has super armour (still
5
  // takes the damage, keeps going). His inhale holds Kirby (body.grab) and spits him into the ropes for 1 damage.
 
1
  // Boss "king_dedede": King Dedede of Kirby's Dream Land, in his ring. Four moves picked from the script's random
2
+ // jumptables (walk-and-slide, jump, inhale, hammer; see specs/king_dedede.spec.js). He has 10 HP and is hurt only by
3
  // a Star Bullet - the ammunition is the stars his jump and his ground swing knock loose. A hit outside the slide and
4
  // the hammer swing freezes him for 30 frames (each hit restarts it); during those two he has super armour (still
5
  // takes the damage, keeps going). His inhale holds Kirby (body.grab) and spits him into the ropes for 1 damage.
environments/games/web/games/kirby_remake/bosses/kracko.js CHANGED
@@ -1,7 +1,7 @@
1
  // Boss "kracko": Kracko of Kirby's Dream Land. A one-eyed thundercloud that never lands: it drifts across the sky
2
  // in a wave (or swoops low when the player is under its path), spins a ring of sparks and drops Waddle Doos. The
3
  // Doos are the ammunition - inhaled and spat back up at the cloud as Star Bullets. The move order is the game's own
4
- // script (jump_random 31 percent chains, see specs/kracko.yaml); every path is a GB velocity track (BB.KIRBY.Track)
5
  // played at the speed knob. The extra knob runs the Extra Game script: bomb passes and a charge from a fixed home.
6
  // Coordinates: GB px / 8 = u, y up. Tags: [data] = KDL disassembly, [cited] = WiKirby, [hand] = our choice.
7
  (function (g) {
 
1
  // Boss "kracko": Kracko of Kirby's Dream Land. A one-eyed thundercloud that never lands: it drifts across the sky
2
  // in a wave (or swoops low when the player is under its path), spins a ring of sparks and drops Waddle Doos. The
3
  // Doos are the ammunition - inhaled and spat back up at the cloud as Star Bullets. The move order is the game's own
4
+ // script (jump_random 31 percent chains, see specs/kracko.spec.js); every path is a GB velocity track (BB.KIRBY.Track)
5
  // played at the speed knob. The extra knob runs the Extra Game script: bomb passes and a charge from a fixed home.
6
  // Coordinates: GB px / 8 = u, y up. Tags: [data] = KDL disassembly, [cited] = WiKirby, [hand] = our choice.
7
  (function (g) {
environments/games/web/games/kirby_remake/bosses/whispy_woods.js CHANGED
@@ -1,5 +1,5 @@
1
  // Boss "whispy_woods": Whispy Woods of Kirby's Dream Land. A rooted tree on the right: it blows air puffs and drops
2
- // apples. The move order is the game's own script (jump_random chains, see specs/whispy_woods.yaml); the only way
3
  // to hurt it is an apple inhaled and spat back as a Star Bullet. Timers are in seconds (frames / 60), every object
4
  // path is a GB velocity track (BB.KIRBY.Track) played at the speed knob. The extra knob runs the Extra Game script.
5
  (function (g) {
 
1
  // Boss "whispy_woods": Whispy Woods of Kirby's Dream Land. A rooted tree on the right: it blows air puffs and drops
2
+ // apples. The move order is the game's own script (jump_random chains, see specs/whispy_woods.spec.js); the only way
3
  // to hurt it is an apple inhaled and spat back as a Star Bullet. Timers are in seconds (frames / 60), every object
4
  // path is a GB velocity track (BB.KIRBY.Track) played at the speed knob. The extra knob runs the Extra Game script.
5
  (function (g) {
environments/games/web/games/kirby_remake/index.html CHANGED
@@ -110,7 +110,7 @@
110
  <ul id="skilllist"></ul>
111
  </div>
112
  </div>
113
- <footer>Desktop keyboard demo · Standalone boss scenes based on Kirby’s Dream Land (GB, 1992). <a href="replay.html">Import a Replay</a></footer>
114
  </div>
115
 
116
  <!-- Script order is the contract: engine/load.js replays exactly this list in Node (minus engine/input.js, engine/app.js). -->
 
110
  <ul id="skilllist"></ul>
111
  </div>
112
  </div>
113
+ <footer><a href="replay.html">Import a Replay</a> · All rights in the original game, including its title, characters, artwork, audio, and trademarks, remain exclusively with its original game companies and rights holders. GameDojo is an independent reconstruction for non-commercial scientific research.</footer>
114
  </div>
115
 
116
  <!-- Script order is the contract: engine/load.js replays exactly this list in Node (minus engine/input.js, engine/app.js). -->
environments/games/web/games/kirby_remake/replay.html CHANGED
@@ -11,6 +11,7 @@
11
  <div class="row"><button id="play" disabled>Play</button><button id="step" disabled>Forward 0.2 seconds</button><button id="restart" disabled>Restart</button><label>Speed <select id="speed"><option value="0.5">0.5×</option><option value="1" selected>1×</option><option value="2">2×</option><option value="4">4×</option></select></label></div>
12
  <input id="progress" disabled type="range" min="0" max="1" step="1" value="0" aria-label="Replay Progress"><div id="status" role="status" aria-live="polite"></div><div id="error" role="alert"></div>
13
  <details><summary>Match Data</summary><pre id="info"></pre></details>
 
14
  </main>
15
  <script src="../../engine/core.js"></script><script src="arena.js"></script>
16
  <script src="specs/whispy_woods.spec.js"></script><script src="specs/kracko.spec.js"></script><script src="specs/king_dedede.spec.js"></script><script src="specs/poppy_bros_sr.spec.js"></script><script src="specs/lololo_lalala.spec.js"></script><script src="specs/kaboola.spec.js"></script>
 
11
  <div class="row"><button id="play" disabled>Play</button><button id="step" disabled>Forward 0.2 seconds</button><button id="restart" disabled>Restart</button><label>Speed <select id="speed"><option value="0.5">0.5×</option><option value="1" selected>1×</option><option value="2">2×</option><option value="4">4×</option></select></label></div>
12
  <input id="progress" disabled type="range" min="0" max="1" step="1" value="0" aria-label="Replay Progress"><div id="status" role="status" aria-live="polite"></div><div id="error" role="alert"></div>
13
  <details><summary>Match Data</summary><pre id="info"></pre></details>
14
+ <footer><p>All rights in the original game, including its title, characters, artwork, audio, and trademarks, remain exclusively with its original game companies and rights holders. GameDojo is an independent reconstruction for non-commercial scientific research.</p></footer>
15
  </main>
16
  <script src="../../engine/core.js"></script><script src="arena.js"></script>
17
  <script src="specs/whispy_woods.spec.js"></script><script src="specs/kracko.spec.js"></script><script src="specs/king_dedede.spec.js"></script><script src="specs/poppy_bros_sr.spec.js"></script><script src="specs/lololo_lalala.spec.js"></script><script src="specs/kaboola.spec.js"></script>
environments/games/web/games/kof_remake/bosses/orochi_team_ai.js CHANGED
@@ -5,7 +5,7 @@
5
  // Behaviour sources: S23 (the CPU in '97: Yashiro guards very solidly and walks in for reactive command throws; Shermie
6
  // spams Mugetsu no Raiun at varying positions and answers jumps with Ankoku Raikouken when she has a stock; Chris has no
7
  // notable rhythm, sometimes Shishi o Kamu Honoo on wake-up, Taiyo-then-Kagami, presses forward when you over-guard),
8
- // S20-S22 (move functions). Probabilities are the YAML knobs (specs/orochi_*.yaml); all of them are approximations.
9
  (function(g){
10
  var BB=g.BB,KF=BB.KOF,T=KF.TEAM_AI=KF.TEAM_AI||{};
11
  function side(f,o){return {dist:Math.abs(o.x-f.x),toward:o.x>f.x?'right':'left',back:o.x>f.x?'left':'right'};}
 
5
  // Behaviour sources: S23 (the CPU in '97: Yashiro guards very solidly and walks in for reactive command throws; Shermie
6
  // spams Mugetsu no Raiun at varying positions and answers jumps with Ankoku Raikouken when she has a stock; Chris has no
7
  // notable rhythm, sometimes Shishi o Kamu Honoo on wake-up, Taiyo-then-Kagami, presses forward when you over-guard),
8
+ // S20-S22 (move functions). Probabilities are the configured probabilities (specs/orochi_*.spec.js); all of them are approximations.
9
  (function(g){
10
  var BB=g.BB,KF=BB.KOF,T=KF.TEAM_AI=KF.TEAM_AI||{};
11
  function side(f,o){return {dist:Math.abs(o.x-f.x),toward:o.x>f.x?'right':'left',back:o.x>f.x?'left':'right'};}
environments/games/web/games/kof_remake/index.html CHANGED
@@ -23,6 +23,7 @@
23
  </ul></section><section class="box" id="skills"><h3>Opponent Moves</h3><ul id="skilllist"></ul></section></div>
24
  <section class="box replay"><h3>Recording and Replay</h3><div class="row"><button class="b" id="save-run">Download Current Replay</button><label>Import Replay <input id="load-run" type="file" accept=".json,application/json"></label></div><div class="row"><button class="b" id="replay-toggle">Pause Replay</button><button class="b" id="replay-back">Choose Opponent</button></div><p id="replay-status">Save a replay after a match, or watch a recorded automated example.</p></section>
25
  <p class="note">Independent implementation with original visuals. Play Flame Fist against six opponents in an elimination benchmark. Move frames, hitboxes, and damage are approximations.</p>
 
26
  </main>
27
  <script src="../../engine/core.js"></script><script src="arena.js"></script>
28
  <script src="specs/iori.spec.js"></script><script src="specs/orochi_iori.spec.js"></script><script src="specs/orochi.spec.js"></script><script src="specs/orochi_yashiro.spec.js"></script><script src="specs/orochi_shermie.spec.js"></script><script src="specs/orochi_chris.spec.js"></script>
 
23
  </ul></section><section class="box" id="skills"><h3>Opponent Moves</h3><ul id="skilllist"></ul></section></div>
24
  <section class="box replay"><h3>Recording and Replay</h3><div class="row"><button class="b" id="save-run">Download Current Replay</button><label>Import Replay <input id="load-run" type="file" accept=".json,application/json"></label></div><div class="row"><button class="b" id="replay-toggle">Pause Replay</button><button class="b" id="replay-back">Choose Opponent</button></div><p id="replay-status">Save a replay after a match, or watch a recorded automated example.</p></section>
25
  <p class="note">Independent implementation with original visuals. Play Flame Fist against six opponents in an elimination benchmark. Move frames, hitboxes, and damage are approximations.</p>
26
+ <footer><p>All rights in the original game, including its title, characters, artwork, audio, and trademarks, remain exclusively with its original game companies and rights holders. GameDojo is an independent reconstruction for non-commercial scientific research.</p></footer>
27
  </main>
28
  <script src="../../engine/core.js"></script><script src="arena.js"></script>
29
  <script src="specs/iori.spec.js"></script><script src="specs/orochi_iori.spec.js"></script><script src="specs/orochi.spec.js"></script><script src="specs/orochi_yashiro.spec.js"></script><script src="specs/orochi_shermie.spec.js"></script><script src="specs/orochi_chris.spec.js"></script>
environments/games/web/games/kof_remake/scripted.js CHANGED
@@ -145,5 +145,4 @@
145
  };
146
  BB.GAME.scriptedInfo='kof97 rollout controller v3.1 (v3 + roll through a stationary orb): '+CANDS.length+' candidate packets x '+(HORIZON+1)+'-packet lookahead x '+VARIANTS+' synthetic opponent RNG streams on deep copies';
147
  BB.GAME.scriptedLast=function(c){return last&&last.get(c)||null;};
148
- BB.GAME.scriptedCopy=copyCase; // exposed for tests (lookahead fidelity)
149
  })(typeof window!=='undefined'?window:globalThis);
 
145
  };
146
  BB.GAME.scriptedInfo='kof97 rollout controller v3.1 (v3 + roll through a stationary orb): '+CANDS.length+' candidate packets x '+(HORIZON+1)+'-packet lookahead x '+VARIANTS+' synthetic opponent RNG streams on deep copies';
147
  BB.GAME.scriptedLast=function(c){return last&&last.get(c)||null;};
 
148
  })(typeof window!=='undefined'?window:globalThis);
environments/games/web/games/mario64_remake/app3d.js CHANGED
@@ -35,7 +35,6 @@
35
  $('#pause').onclick=()=>{if(session.game.outcome)return;running=!running;clear();if(running)canvas.focus();draw();};
36
  $('#step').onclick=()=>{running=false;if(replay)replayTick();else session.tick();draw();};
37
  function openReplay(data){N.Session.import(M,data);reset(data.case,data.seed,data.difficulty);replay=data;replayIndex=0;running=true;$('#case').value=data.case;status('Replay verified; playback started');draw();}
38
- $('#sample').onclick=()=>{try{const data=M.example?.[$('#case').value];if(!data)throw Error('No built-in replay for this fight; try the scripted demo');openReplay(data);}catch(error){status(error.message);}};
39
  function replayTick(){if(replayIndex<replay.inputs.length){const input=replay.inputs[replayIndex++];session.tick(input[0],input[1]);}if(replayIndex===replay.inputs.length){running=false;status('Replay Finished · '+(N.hash(session.state())===replay.finalHash?'final state matches':'final state mismatch'));}}
40
  $('#export').onclick=()=>{const data=session.export(),url=URL.createObjectURL(new Blob([JSON.stringify(data)],{type:'application/json'}));const link=document.createElement('a');link.href=url;link.download=M.id+'-'+session.seed+'.json';link.click();setTimeout(()=>URL.revokeObjectURL(url),1000);status('Current replay exported');};
41
  $('#import').onclick=()=>$('#file').click();$('#file').onchange=async event=>{const file=event.target.files[0];if(!file)return;try{if(file.size>12e6)throw Error('Replay file is too large');openReplay(JSON.parse(await file.text()));}catch(error){status('Import failed: '+error.message);}event.target.value='';};
 
35
  $('#pause').onclick=()=>{if(session.game.outcome)return;running=!running;clear();if(running)canvas.focus();draw();};
36
  $('#step').onclick=()=>{running=false;if(replay)replayTick();else session.tick();draw();};
37
  function openReplay(data){N.Session.import(M,data);reset(data.case,data.seed,data.difficulty);replay=data;replayIndex=0;running=true;$('#case').value=data.case;status('Replay verified; playback started');draw();}
 
38
  function replayTick(){if(replayIndex<replay.inputs.length){const input=replay.inputs[replayIndex++];session.tick(input[0],input[1]);}if(replayIndex===replay.inputs.length){running=false;status('Replay Finished · '+(N.hash(session.state())===replay.finalHash?'final state matches':'final state mismatch'));}}
39
  $('#export').onclick=()=>{const data=session.export(),url=URL.createObjectURL(new Blob([JSON.stringify(data)],{type:'application/json'}));const link=document.createElement('a');link.href=url;link.download=M.id+'-'+session.seed+'.json';link.click();setTimeout(()=>URL.revokeObjectURL(url),1000);status('Current replay exported');};
40
  $('#import').onclick=()=>$('#file').click();$('#file').onchange=async event=>{const file=event.target.files[0];if(!file)return;try{if(file.size>12e6)throw Error('Replay file is too large');openReplay(JSON.parse(await file.text()));}catch(error){status('Import failed: '+error.message);}event.target.value='';};
environments/games/web/games/mario64_remake/game.js CHANGED
@@ -136,8 +136,7 @@
136
  constructor(id,seed,d){
137
  const def=CASES.find(c=>c.id===id);if(!def)throw Error('Unknown Super Mario 64 case');
138
  this.id=id;this.kind=def.kind;this.rng=seed||0x2545f491;this.d=d;this.t=0;this.outcome=null;this.events=[];this.effects=[];this.lastKeys=[];
139
- // The shared xorshift's first draws barely move for small seeds (seed 1..8 -> 0.0001..0.0005), so it is warmed up
140
- // before the start position is drawn; otherwise seeds 1-8 would all start in the same spot.
141
  for(let i=0;i<8;i++)N.rand(this);
142
  this.T=tune(this.kind,d);
143
  // Arrival: Mario reaches the boss floor at a.arrive and returns there after a fall (entry = 150 inside the edge on
 
136
  constructor(id,seed,d){
137
  const def=CASES.find(c=>c.id===id);if(!def)throw Error('Unknown Super Mario 64 case');
138
  this.id=id;this.kind=def.kind;this.rng=seed||0x2545f491;this.d=d;this.t=0;this.outcome=null;this.events=[];this.effects=[];this.lastKeys=[];
139
+ // Warm up the PRNG before sampling the starting position.
 
140
  for(let i=0;i<8;i++)N.rand(this);
141
  this.T=tune(this.kind,d);
142
  // Arrival: Mario reaches the boss floor at a.arrive and returns there after a fall (entry = 150 inside the edge on
environments/games/web/games/mario64_remake/index.html CHANGED
@@ -1,7 +1,7 @@
1
  <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="data:,"><title>Super Mario 64 · Boss Challenges</title><link rel="stylesheet" href="style3d.css"></head><body><main>
2
  <header><div><div class="eyebrow">Super Mario 64 · 1996 · Boss Trials</div><h1>Super Mario 64 · Boss Challenges</h1><p>Face Whomp King, King Bob-omb, Big Bully, Eyerok, Wiggler, and Bowser. Triple jump, ground pound, grab and throw, knock foes into lava, strike exposed palms, stomp heads, and swing Bowser into mines. Mechanics follow the public SM64 decompilation; the low-poly art is original.</p></div><a href="../../index.html">Back to Game Lobby ↗</a></header>
3
- <div class="layout"><section><div class="stage"><canvas width="854" height="480" tabindex="0" aria-label="Super Mario 64 3D boss battle screen"></canvas><div id="overlay"><div><strong>Are You Ready?</strong><span>Click Start Challenge</span></div></div><div class="toolbar"><button id="start" class="primary">Start Challenge / Restart</button><button id="pause">Resume</button><button id="step">Step</button><button id="demo">Scripted Demo</button><button id="sample">Winning Replay</button></div></div>
4
  <div class="mobile"><button data-key="W">↑</button><button data-key="A">←</button><button data-key="S">↓</button><button data-key="D">→</button><button data-key="Space">Jump A</button><button data-key="J">Punch B</button><button data-key="Shift">Crouch Z</button><button data-key="Q">Camera ◀</button><button data-key="E">Camera ▶</button><button data-key="R">Reset camera</button></div><p id="status" role="status"></p><div class="toolbar record-toolbar"><button id="export">Export Current Replay</button><button id="import">Import and Replay</button><input id="file" type="file" accept=".json,application/json"></div><p class="note">The scripted demo reads internal state to verify each fight can be completed. Replays save real inputs, reproduce the entire fight, and verify the final state.</p></section>
5
  <aside><div><h2>Challenge Settings</h2><label for="case">Boss</label><select id="case"></select><label for="seed">Seed</label><input id="seed" type="number" min="0" max="4294967295" step="1" value="1"></div><div><label for="difficulty">Difficulty Tier</label><select id="difficulty"><option value="0.2">Easy</option><option value="0.5" selected>Normal</option><option value="0.8">Hard</option></select><p class="note">Click the screen to enable keyboard and mouse controls; Esc pauses. Drag with the mouse or double-click to lock the pointer and freely rotate the follow camera. Q/E rotate 45°; R resets the camera.</p></div><dl></dl></aside></div>
6
- <footer></footer></main>
7
  <script src="../_native/runtime.js"></script><script src="../_boss3d/vendor/three.min.js"></script><script src="renderer3d.js"></script><script src="game.js"></script><script src="draw.js"></script><script>window.GAME_MODULE=Mario64Game;</script><script src="app3d.js"></script></body></html>
 
1
  <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="data:,"><title>Super Mario 64 · Boss Challenges</title><link rel="stylesheet" href="style3d.css"></head><body><main>
2
  <header><div><div class="eyebrow">Super Mario 64 · 1996 · Boss Trials</div><h1>Super Mario 64 · Boss Challenges</h1><p>Face Whomp King, King Bob-omb, Big Bully, Eyerok, Wiggler, and Bowser. Triple jump, ground pound, grab and throw, knock foes into lava, strike exposed palms, stomp heads, and swing Bowser into mines. Mechanics follow the public SM64 decompilation; the low-poly art is original.</p></div><a href="../../index.html">Back to Game Lobby ↗</a></header>
3
+ <div class="layout"><section><div class="stage"><canvas width="854" height="480" tabindex="0" aria-label="Super Mario 64 3D boss battle screen"></canvas><div id="overlay"><div><strong>Are You Ready?</strong><span>Click Start Challenge</span></div></div><div class="toolbar"><button id="start" class="primary">Start Challenge / Restart</button><button id="pause">Resume</button><button id="step">Step</button><button id="demo">Scripted Demo</button></div></div>
4
  <div class="mobile"><button data-key="W">↑</button><button data-key="A">←</button><button data-key="S">↓</button><button data-key="D">→</button><button data-key="Space">Jump A</button><button data-key="J">Punch B</button><button data-key="Shift">Crouch Z</button><button data-key="Q">Camera ◀</button><button data-key="E">Camera ▶</button><button data-key="R">Reset camera</button></div><p id="status" role="status"></p><div class="toolbar record-toolbar"><button id="export">Export Current Replay</button><button id="import">Import and Replay</button><input id="file" type="file" accept=".json,application/json"></div><p class="note">The scripted demo reads internal state to verify each fight can be completed. Replays save real inputs, reproduce the entire fight, and verify the final state.</p></section>
5
  <aside><div><h2>Challenge Settings</h2><label for="case">Boss</label><select id="case"></select><label for="seed">Seed</label><input id="seed" type="number" min="0" max="4294967295" step="1" value="1"></div><div><label for="difficulty">Difficulty Tier</label><select id="difficulty"><option value="0.2">Easy</option><option value="0.5" selected>Normal</option><option value="0.8">Hard</option></select><p class="note">Click the screen to enable keyboard and mouse controls; Esc pauses. Drag with the mouse or double-click to lock the pointer and freely rotate the follow camera. Q/E rotate 45°; R resets the camera.</p></div><dl></dl></aside></div>
6
+ <footer>All rights in the original game, including its title, characters, artwork, audio, and trademarks, remain exclusively with its original game companies and rights holders. GameDojo is an independent reconstruction for non-commercial scientific research.</footer></main>
7
  <script src="../_native/runtime.js"></script><script src="../_boss3d/vendor/three.min.js"></script><script src="renderer3d.js"></script><script src="game.js"></script><script src="draw.js"></script><script>window.GAME_MODULE=Mario64Game;</script><script src="app3d.js"></script></body></html>
environments/games/web/games/megaman_remake/bosses/bomb_man.js CHANGED
@@ -10,7 +10,7 @@
10
  // It bursts on the floor or a wall into 12 shrapnel pieces ($F88A-$F8BA, no gravity, no tile collision); a piece
11
  // flies 7-8 frames, turns into dust (still harmful) for 7 more and vanishes. Player shots pass through bombs and
12
  // pieces (no flag bit 2); touching a bomb hurts but does not set it off. Bomb Man has no hit reaction.
13
- // Tier knobs (specs/bomb_man.yaml): hp, bomb/shrapnel damage, contact damage, windup frames.
14
  (function (g) {
15
  var B = g.BB, BB = B, MM = B.MM, RM = MM.RobotMaster, fx = MM.fx;
16
  // $E03B variant table: table index after the jump (state - 5), X speed, Y speed
 
10
  // It bursts on the floor or a wall into 12 shrapnel pieces ($F88A-$F8BA, no gravity, no tile collision); a piece
11
  // flies 7-8 frames, turns into dust (still harmful) for 7 more and vanishes. Player shots pass through bombs and
12
  // pieces (no flag bit 2); touching a bomb hurts but does not set it off. Bomb Man has no hit reaction.
13
+ // Tier knobs (specs/bomb_man.spec.js): hp, bomb/shrapnel damage, contact damage, windup frames.
14
  (function (g) {
15
  var B = g.BB, BB = B, MM = B.MM, RM = MM.RobotMaster, fx = MM.fx;
16
  // $E03B variant table: table index after the jump (state - 5), X speed, Y speed
environments/games/web/games/megaman_remake/bosses/cut_man.js CHANGED
@@ -12,7 +12,7 @@
12
  // The Rolling Cutter (record 6, 6x6, no tile collision) is aimed at the player at 02.60 (proportional_velocity), turns
13
  // back outside x [24, 232) / y [24, 216), and homes on him at 02.60 + 0.04 per retarget every 4th frame, caught within
14
  // 8 px; one cutter at a time. AI timing reads the boss animation frame byte ($0441), so the animation counter is kept.
15
- // Tier knobs (specs/cut_man.yaml): hp, cutter/contact damage, cutter speed scale, chase wait.
16
  (function (g) {
17
  var B = g.BB, BB = B, MM = B.MM, RM = MM.RobotMaster, fx = MM.fx;
18
  // $DFC0 by seq_step - 5; entry 20 is the forced hit reaction (Y = $28), handled by react()
 
12
  // The Rolling Cutter (record 6, 6x6, no tile collision) is aimed at the player at 02.60 (proportional_velocity), turns
13
  // back outside x [24, 232) / y [24, 216), and homes on him at 02.60 + 0.04 per retarget every 4th frame, caught within
14
  // 8 px; one cutter at a time. AI timing reads the boss animation frame byte ($0441), so the animation counter is kept.
15
+ // Tier knobs (specs/cut_man.spec.js): hp, cutter/contact damage, cutter speed scale, chase wait.
16
  (function (g) {
17
  var B = g.BB, BB = B, MM = B.MM, RM = MM.RobotMaster, fx = MM.fx;
18
  // $DFC0 by seq_step - 5; entry 20 is the forced hit reaction (Y = $28), handled by react()
environments/games/web/games/megaman_remake/bosses/elec_man.js CHANGED
@@ -7,7 +7,7 @@
7
  // react for the first 32 of his 63 blink frames after a hit: turn away and hop (01.40 up, 01.20)
8
  // The Thunder Beam (records 7-$0B, 01.50 px/frame) is five pieces that crawl: each time a piece's 10-frame
9
  // animation wraps it jumps ahead and changes shape ($9AF4 x, $9AFC y, $9B04 next; staggered first wraps).
10
- // Tier knobs (specs/elec_man.yaml): hp, beam/contact damage, walk speed, windup, chance to counter a shot.
11
  (function (g) {
12
  var B = g.BB, BB = B, MM = B.MM, RM = MM.RobotMaster, fx = MM.fx;
13
  var WALLS = [0xB0, 0x80, 0x30, 0x80];
 
7
  // react for the first 32 of his 63 blink frames after a hit: turn away and hop (01.40 up, 01.20)
8
  // The Thunder Beam (records 7-$0B, 01.50 px/frame) is five pieces that crawl: each time a piece's 10-frame
9
  // animation wraps it jumps ahead and changes shape ($9AF4 x, $9AFC y, $9B04 next; staggered first wraps).
10
+ // Tier knobs (specs/elec_man.spec.js): hp, beam/contact damage, walk speed, windup, chance to counter a shot.
11
  (function (g) {
12
  var B = g.BB, BB = B, MM = B.MM, RM = MM.RobotMaster, fx = MM.fx;
13
  var WALLS = [0xB0, 0x80, 0x30, 0x80];
environments/games/web/games/megaman_remake/bosses/fire_man.js CHANGED
@@ -10,7 +10,7 @@
10
  // A wave (record 1) forms at his hand for 23 frames at 00.20, then runs at 05.10 ($37 X-speed row 6). When a
11
  // running wave passes within 8 px of the player, a fire pillar (record 4, 16 x 16) rises there at floor level
12
  // and burns for 131 frames (anim $38, 12 slots x 11 ticks) unless the next wave puts it out.
13
- // Tier knobs (specs/fire_man.yaml): hp, wave/contact damage, stance length, retaliation on/off.
14
  (function (g) {
15
  var B = g.BB, BB = B, MM = B.MM, RM = MM.RobotMaster, fx = MM.fx;
16
  var BAND_LO = 0x5F, BAND_HI = 0x61, FORM_T = 23, PILLAR_T = 131, EARLY = 15, POSE_MAX = 90;
 
10
  // A wave (record 1) forms at his hand for 23 frames at 00.20, then runs at 05.10 ($37 X-speed row 6). When a
11
  // running wave passes within 8 px of the player, a fire pillar (record 4, 16 x 16) rises there at floor level
12
  // and burns for 131 frames (anim $38, 12 slots x 11 ticks) unless the next wave puts it out.
13
+ // Tier knobs (specs/fire_man.spec.js): hp, wave/contact damage, stance length, retaliation on/off.
14
  (function (g) {
15
  var B = g.BB, BB = B, MM = B.MM, RM = MM.RobotMaster, fx = MM.fx;
16
  var BAND_LO = 0x5F, BAND_HI = 0x61, FORM_T = 23, PILLAR_T = 131, EARLY = 15, POSE_MAX = 90;
environments/games/web/games/megaman_remake/bosses/guts_man.js CHANGED
@@ -10,7 +10,7 @@
10
  // shatters on any tile or screen edge into 4 chunks (anim $56, 4 x 4, no gravity, no tile collision) placed at the rock's
11
  // position + (8,8) (24,8) (8,24) (24,24): the rock path does not take off the 16 px the player's block path does.
12
  // The ceiling rock has no contact flag: it only decorates the 23 frames before he can throw. Guts Man has no hit reaction.
13
- // Tier knobs (specs/guts_man.yaml): hp, rock/chunk damage, contact damage, windup frames, rock speed scale.
14
  (function (g) {
15
  var B = g.BB, BB = B, MM = B.MM, RM = MM.RobotMaster, fx = MM.fx;
16
  // $E6CA by seq_step - 5
 
10
  // shatters on any tile or screen edge into 4 chunks (anim $56, 4 x 4, no gravity, no tile collision) placed at the rock's
11
  // position + (8,8) (24,8) (8,24) (24,24): the rock path does not take off the 16 px the player's block path does.
12
  // The ceiling rock has no contact flag: it only decorates the 23 frames before he can throw. Guts Man has no hit reaction.
13
+ // Tier knobs (specs/guts_man.spec.js): hp, rock/chunk damage, contact damage, windup frames, rock speed scale.
14
  (function (g) {
15
  var B = g.BB, BB = B, MM = B.MM, RM = MM.RobotMaster, fx = MM.fx;
16
  // $E6CA by seq_step - 5
environments/games/web/games/megaman_remake/bosses/ice_man.js CHANGED
@@ -5,7 +5,7 @@
5
  // through 164 and 148 firing again - six slashers per cycle in a V; finally gravity returns with a 02.C0 pop
6
  // and he lands. Every landing advances the waypoint and the pattern counter (0..9); counter / 3 picks the
7
  // slasher speed (01.60 / 01.80 / 02.00 / 02.E0), hover time and sink speed, so the pattern speeds up.
8
- // Ice Man has no hit reaction. Tier knobs (specs/ice_man.yaml): hp, slasher/contact damage, slasher speed
9
  // scale, hover scale, stance windup.
10
  (function (g) {
11
  var B = g.BB, BB = B, MM = B.MM, RM = MM.RobotMaster, fx = MM.fx;
 
5
  // through 164 and 148 firing again - six slashers per cycle in a V; finally gravity returns with a 02.C0 pop
6
  // and he lands. Every landing advances the waypoint and the pattern counter (0..9); counter / 3 picks the
7
  // slasher speed (01.60 / 01.80 / 02.00 / 02.E0), hover time and sink speed, so the pattern speeds up.
8
+ // Ice Man has no hit reaction. Tier knobs (specs/ice_man.spec.js): hp, slasher/contact damage, slasher speed
9
  // scale, hover scale, stance windup.
10
  (function (g) {
11
  var B = g.BB, BB = B, MM = B.MM, RM = MM.RobotMaster, fx = MM.fx;
environments/games/web/games/megaman_remake/data/weapons.js CHANGED
@@ -4,7 +4,7 @@
4
  // $C994 boss post-hit invulnerability frames per mode
5
  // $FEBB damage a boss projectile deals per mode; boss body contact is a flat 4 (player_contact_service)
6
  // $A8DE weapon energy units per shot ($A8D7 shots-per-charge is 1 for every weapon)
7
- // Every Robot Master is listed so scenes 4-6 plug in later; `built` marks what this round implements.
8
  (function (g) {
9
  var MM = g.BB.MM;
10
  MM.WEAPON_ORDER = ['P', 'C', 'I', 'B', 'F', 'E', 'G', 'M'];
 
4
  // $C994 boss post-hit invulnerability frames per mode
5
  // $FEBB damage a boss projectile deals per mode; boss body contact is a flat 4 (player_contact_service)
6
  // $A8DE weapon energy units per shot ($A8D7 shots-per-charge is 1 for every weapon)
7
+ // The built flag identifies available weapons.
8
  (function (g) {
9
  var MM = g.BB.MM;
10
  MM.WEAPON_ORDER = ['P', 'C', 'I', 'B', 'F', 'E', 'G', 'M'];
environments/games/web/games/megaman_remake/index.html CHANGED
@@ -7,7 +7,7 @@
7
  <div class="row hidden" id="play-actions"><button class="b" id="pause">Pause</button></div><div id="pausepanel" class="row hidden"><button id="resume" class="b">Resume</button><button id="quit" class="b">Back to Stages</button></div>
8
  <div id="help"><section class="box"><h3>Controls · CONTROLS</h3><ul><li><kbd>A</kbd><kbd>D</kbd> / arrow keys to move; <kbd>Space</kbd> / <kbd>Z</kbd> to jump; hold for more height</li><li><kbd>J</kbd> / <kbd>X</kbd> / left mouse button to fire (one shot per press, up to three Arm Gun shots on screen)</li><li><kbd>Q</kbd> / <kbd>E</kbd> switch weapons (replaces the original pause menu: switching recalls the active special shot; fired Arm Gun shots continue moving but no longer deal damage)</li><li><kbd>P</kbd>/<kbd>Esc</kbd> to pause; then <kbd>Q</kbd> to go back; after a result, press <kbd>R</kbd> to retry. Scripted Demo runs reference script <code>BB.GAME.scripted</code></li><li>Sliding was added in Mega Man 3 and charge shots in Mega Man 4; neither is available here</li></ul><h3 style="margin-top:14px">Weapon × boss damage table (NES units)</h3><div id="dmgtable"></div></section><section class="box" id="skills"><h3>Skill list</h3><ul id="skilllist"></ul></section></div>
9
  <div class="replay-panel"><b>Replay and step playback</b><div class="row"><button id="save-run" class="b">Save this replay</button><label class="b">Import Replay <input id="load-run" type="file" accept=".json" style="max-width:150px"></label><button id="replay-toggle" class="b">Play / Pause</button><button id="replay-back" class="b">Exit Replay</button><span id="replay-status">One packet every 200 ms; replays are deterministic with the same seed, options, and rules</span></div></div>
10
- <footer>Independent mechanics recreation: boss state machines, damage tables, invulnerability frames, and physics constants follow public annotated disassemblies of the first game. Visuals are original pixel art drawn in code; no original ROM images or audio are used.</footer></div>
11
  <script src="../../engine/core.js"></script><script src="arena.js"></script><script src="data/weapons.js"></script><script src="specs/elec_man.spec.js"></script><script src="specs/ice_man.spec.js"></script><script src="specs/fire_man.spec.js"></script>
12
  <script src="specs/bomb_man.spec.js"></script><script src="specs/cut_man.spec.js"></script><script src="specs/guts_man.spec.js"></script><script src="body_megaman.js"></script><script src="../../engine/boss_kit.js"></script><script src="bosses/robot_master.js"></script><script src="bosses/elec_man.js"></script><script src="bosses/ice_man.js"></script><script src="bosses/fire_man.js"></script>
13
  <script src="bosses/bomb_man.js"></script><script src="bosses/cut_man.js"></script><script src="bosses/guts_man.js"></script><script src="../../engine/case.js"></script><script src="../../engine/juice.js"></script><script src="../../engine/art_kit.js"></script><script src="../../engine/renderer.js"></script><script src="draw/palette.js"></script><script src="draw/compose.js"></script><script src="draw/player.js"></script><script src="draw/rooms.js"></script><script src="draw/hud.js"></script><script src="art/scenes.js"></script><script src="game.js"></script><script src="scripted.js"></script><script src="../../engine/input.js"></script><script src="../../engine/app.js"></script><script src="page.js"></script><script src="../../engine/sessions.js"></script>
 
7
  <div class="row hidden" id="play-actions"><button class="b" id="pause">Pause</button></div><div id="pausepanel" class="row hidden"><button id="resume" class="b">Resume</button><button id="quit" class="b">Back to Stages</button></div>
8
  <div id="help"><section class="box"><h3>Controls · CONTROLS</h3><ul><li><kbd>A</kbd><kbd>D</kbd> / arrow keys to move; <kbd>Space</kbd> / <kbd>Z</kbd> to jump; hold for more height</li><li><kbd>J</kbd> / <kbd>X</kbd> / left mouse button to fire (one shot per press, up to three Arm Gun shots on screen)</li><li><kbd>Q</kbd> / <kbd>E</kbd> switch weapons (replaces the original pause menu: switching recalls the active special shot; fired Arm Gun shots continue moving but no longer deal damage)</li><li><kbd>P</kbd>/<kbd>Esc</kbd> to pause; then <kbd>Q</kbd> to go back; after a result, press <kbd>R</kbd> to retry. Scripted Demo runs reference script <code>BB.GAME.scripted</code></li><li>Sliding was added in Mega Man 3 and charge shots in Mega Man 4; neither is available here</li></ul><h3 style="margin-top:14px">Weapon × boss damage table (NES units)</h3><div id="dmgtable"></div></section><section class="box" id="skills"><h3>Skill list</h3><ul id="skilllist"></ul></section></div>
9
  <div class="replay-panel"><b>Replay and step playback</b><div class="row"><button id="save-run" class="b">Save this replay</button><label class="b">Import Replay <input id="load-run" type="file" accept=".json" style="max-width:150px"></label><button id="replay-toggle" class="b">Play / Pause</button><button id="replay-back" class="b">Exit Replay</button><span id="replay-status">One packet every 200 ms; replays are deterministic with the same seed, options, and rules</span></div></div>
10
+ <footer>All rights in the original game, including its title, characters, artwork, audio, and trademarks, remain exclusively with its original game companies and rights holders. GameDojo is an independent reconstruction for non-commercial scientific research.</footer></div>
11
  <script src="../../engine/core.js"></script><script src="arena.js"></script><script src="data/weapons.js"></script><script src="specs/elec_man.spec.js"></script><script src="specs/ice_man.spec.js"></script><script src="specs/fire_man.spec.js"></script>
12
  <script src="specs/bomb_man.spec.js"></script><script src="specs/cut_man.spec.js"></script><script src="specs/guts_man.spec.js"></script><script src="body_megaman.js"></script><script src="../../engine/boss_kit.js"></script><script src="bosses/robot_master.js"></script><script src="bosses/elec_man.js"></script><script src="bosses/ice_man.js"></script><script src="bosses/fire_man.js"></script>
13
  <script src="bosses/bomb_man.js"></script><script src="bosses/cut_man.js"></script><script src="bosses/guts_man.js"></script><script src="../../engine/case.js"></script><script src="../../engine/juice.js"></script><script src="../../engine/art_kit.js"></script><script src="../../engine/renderer.js"></script><script src="draw/palette.js"></script><script src="draw/compose.js"></script><script src="draw/player.js"></script><script src="draw/rooms.js"></script><script src="draw/hud.js"></script><script src="art/scenes.js"></script><script src="game.js"></script><script src="scripted.js"></script><script src="../../engine/input.js"></script><script src="../../engine/app.js"></script><script src="page.js"></script><script src="../../engine/sessions.js"></script>
environments/games/web/games/minecraft_remake/index.html CHANGED
@@ -79,7 +79,7 @@
79
  </dl>
80
  </aside>
81
  </div>
82
- <footer></footer>
83
  </main>
84
  <script src="play.js"></script>
85
  </body>
 
79
  </dl>
80
  </aside>
81
  </div>
82
+ <footer>All rights in the original game, including its title, characters, artwork, audio, and trademarks, remain exclusively with its original game companies and rights holders. GameDojo is an independent reconstruction for non-commercial scientific research.</footer>
83
  </main>
84
  <script src="play.js"></script>
85
  </body>
environments/games/web/games/minecraft_remake/play.js CHANGED
@@ -218,7 +218,7 @@
218
  // Show the terminal frame at once: frames play back ~0.2 s behind the simulation, so the result overlay would
219
  // otherwise sit on a frame where the boss still has health left.
220
  if (frames.length) { view.src = frames[frames.length - 1]; frames = []; }
221
- window.__bbOutcome = state.outcome; // read by web/tools/bench_media.py ui
222
  const label = {win: 'Victory', loss: 'Failure', timeout: 'Time up'}[state.outcome] || state.outcome;
223
  overlay(label + ' · ' + state.t.toFixed(2) + ' seconds');
224
  if (mode === 'replay' && replayExpect) verifyReplay();
@@ -328,7 +328,7 @@
328
  replayExpect = null;
329
  }
330
 
331
- // ------------------------------------------------------------------ harness hook (web/tools/bench_media.py ui)
332
  window.bossbenchUI = {
333
  demo: (caseId, tier) => demo(caseId, tier),
334
  start: (caseId, tier) => newSession(caseId, 'play', tier).then(() => { startLoop(); return true; }),
 
218
  // Show the terminal frame at once: frames play back ~0.2 s behind the simulation, so the result overlay would
219
  // otherwise sit on a frame where the boss still has health left.
220
  if (frames.length) { view.src = frames[frames.length - 1]; frames = []; }
221
+ window.__bbOutcome = state.outcome;
222
  const label = {win: 'Victory', loss: 'Failure', timeout: 'Time up'}[state.outcome] || state.outcome;
223
  overlay(label + ' · ' + state.t.toFixed(2) + ' seconds');
224
  if (mode === 'replay' && replayExpect) verifyReplay();
 
328
  replayExpect = null;
329
  }
330
 
331
+ // ------------------------------------------------------------------ Browser automation interface
332
  window.bossbenchUI = {
333
  demo: (caseId, tier) => demo(caseId, tier),
334
  start: (caseId, tier) => newSession(caseId, 'play', tier).then(() => { startLoop(); return true; }),
environments/games/web/games/nfsmw_remake/compact_actions.json CHANGED
@@ -2,7 +2,7 @@
2
  "schema": "bossbench/compact-actions@1",
3
  "game": "nfsmw_remake",
4
  "version": "nfsmw-compact@1",
5
- "note": "Four heads, 4 x 13 x 2 x 6 = 624 actions, each held for one 200 ms packet (6 sub-steps of 2 native ticks). No mouse: this game reads none. Pedal and steering are duty cycles over the 6 sub-steps because the car model integrates them: the wheel slews towards the key held and back to centre at the same rate (nfscore.js carStep), so a steering key held for 3 of 6 sub-steps keeps the current angle, 4 or 6 winds it on, 2 lets it come back slowly, none returns it to centre. Options chosen from the reference controller (harness/duty_stats.js: 16001 packets, all six events x three tiers x seeds 1-2) and tested by projecting every reference packet onto this set (harness/compact_sim.js, the same projection as compact.py): versions with 11 steering options lost speed-trap hard 4->2 and the final normal 3->2; the 2/6 ease options brought them back.",
6
  "heads": [
7
  {
8
  "name": "pedal",
 
2
  "schema": "bossbench/compact-actions@1",
3
  "game": "nfsmw_remake",
4
  "version": "nfsmw-compact@1",
5
+ "note": "A 200 ms packet contains six sub-steps. Pedal and steering options hold keyboard inputs for different numbers of sub-steps to control throttle and steering angle. The game uses keyboard input.",
6
  "heads": [
7
  {
8
  "name": "pedal",
environments/games/web/games/nfsmw_remake/index.html CHANGED
@@ -1,7 +1,7 @@
1
  <!doctype html>
2
  <html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="data:,"><title>Need for Speed: Most Wanted · Street Challenges(nfsmw-arena@2)</title><link rel="stylesheet" href="../_native/style.css"><style>body[data-game=nfsmw_remake]{--bg:#161a20;--panel:#222831;--edge:#4b5563;--accent:#ff9a4a}body[data-game=nfsmw_remake] #overlay{display:none!important}#nfs-panel{position:absolute;left:0;top:0;width:100%;aspect-ratio:854/480;display:flex;align-items:center;justify-content:center;background:rgba(6,10,16,.5);cursor:pointer;z-index:2}#nfs-panel[hidden]{display:none}.nfs-card{background:#10161eee;border:1px solid var(--edge);border-radius:6px;padding:14px 22px 12px;max-width:560px;text-align:center;cursor:default;box-shadow:0 8px 30px #0008}.nfs-card h2{margin:2px 0 6px;font-size:22px}.nfs-card h2.win{color:#7dff9a}.nfs-card h2.loss{color:#ff7a66}.nfs-card ul{text-align:left;margin:6px 0 10px;padding-left:20px;font-size:13px;color:var(--muted)}.nfs-card .tip{color:#ffd08a;font-size:13px;margin:6px 0}.nfs-card .row{display:flex;gap:10px;justify-content:center;margin:8px 0 4px}.nfs-card .small{font-size:12px;color:var(--muted);margin:4px 0 0}#nfs-panel{overflow:hidden}@media(max-width:900px){.nfs-card{padding:6px 10px;max-width:96%;max-height:100%;overflow:hidden}.nfs-card h2{font-size:16px;margin:0 0 2px}.nfs-card ul,.nfs-card .small{display:none}.nfs-card p{font-size:12px;margin:2px 0}.nfs-card .row{margin:4px 0 0}.nfs-card button{padding:4px 8px;font-size:13px}}</style></head><body><main>
3
  <header><div><h1>Need for Speed: Most Wanted · Street Challenges</h1><p>2005 original rules, independently recreated from CC0 decompilation · Native 60 Hz · Third-person WebGL · Original procedural city</p></div><a href="../../index.html">Back to Game Lobby</a></header>
4
- <div class="layout"><section><div class="stage"><canvas width="854" height="480" tabindex="0" aria-label="Game Screen"></canvas><div id="nfs-panel"><div class="nfs-card"></div></div><div id="overlay"><div>Select an event, then start the challenge</div></div><div class="toolbar"><button id="start" class="primary">Start Challenge / Restart</button><button id="pause">Resume</button><button id="step">Step</button><button id="demo">Scripted Demo</button><button id="sample">Example Replay</button></div></div><div class="mobile"><button data-key="A">← left</button><button data-key="W">Accelerate</button><button data-key="D">right →</button><button data-key="S">Brake</button><button data-key="Space">Handbrake</button><button data-key="Shift">Nitrous</button><button data-key="J">Slow motion</button><button data-key="R">Reset</button></div><p id="status" role="status"></p><div class="toolbar"><button id="export">Export Current Replay</button><button id="import">Import and Replay</button><input id="file" type="file" accept=".json,application/json"></div><p class="note">Replays save inputs and the seed, then simulate the match again and verify the final state. Scripted Demo reads internal state for verification; it does not start RL training.</p></section>
5
  <aside><div><h2>Select Challenge</h2><label for="case">Event</label><select id="case"></select><label for="seed">Seed</label><input id="seed" type="number" min="0" max="4294967295" value="1" step="1"></div><div><label for="difficulty">Difficulty</label><select id="difficulty"></select><p class="note">The three tiers vary the pace of the same event: route length, rival skill, traffic, and police pressure all increase.</p><p class="note">The two top bars show event progress: orange is the remaining event objective (boss_hp, which only decreases); green is your remaining margin (player_hp, based on time, distance, or the bust meter).</p></div><dl></dl></aside></div>
6
- <footer></footer></main>
7
  <script src="../_native/runtime.js"></script><script src="../_boss3d/vendor/three.min.js"></script><script src="nfscore.js"></script><script src="game.js"></script><script src="rivals.js"></script><script src="modes_tollbooth.js"></script><script src="modes_drag.js"></script><script src="modes_speedtrap.js"></script><script src="modes_knockout.js"></script><script src="cops.js"></script><script src="modes_pursuit.js"></script><script src="scripted.js"></script><script src="renderer3d.js"></script><script src="draw.js"></script><script>window.GAME_MODULE=window.NfsmwGame;</script><script src="../_native/shell.js"></script><script src="page.js"></script></body></html>
 
1
  <!doctype html>
2
  <html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="data:,"><title>Need for Speed: Most Wanted · Street Challenges(nfsmw-arena@2)</title><link rel="stylesheet" href="../_native/style.css"><style>body[data-game=nfsmw_remake]{--bg:#161a20;--panel:#222831;--edge:#4b5563;--accent:#ff9a4a}body[data-game=nfsmw_remake] #overlay{display:none!important}#nfs-panel{position:absolute;left:0;top:0;width:100%;aspect-ratio:854/480;display:flex;align-items:center;justify-content:center;background:rgba(6,10,16,.5);cursor:pointer;z-index:2}#nfs-panel[hidden]{display:none}.nfs-card{background:#10161eee;border:1px solid var(--edge);border-radius:6px;padding:14px 22px 12px;max-width:560px;text-align:center;cursor:default;box-shadow:0 8px 30px #0008}.nfs-card h2{margin:2px 0 6px;font-size:22px}.nfs-card h2.win{color:#7dff9a}.nfs-card h2.loss{color:#ff7a66}.nfs-card ul{text-align:left;margin:6px 0 10px;padding-left:20px;font-size:13px;color:var(--muted)}.nfs-card .tip{color:#ffd08a;font-size:13px;margin:6px 0}.nfs-card .row{display:flex;gap:10px;justify-content:center;margin:8px 0 4px}.nfs-card .small{font-size:12px;color:var(--muted);margin:4px 0 0}#nfs-panel{overflow:hidden}@media(max-width:900px){.nfs-card{padding:6px 10px;max-width:96%;max-height:100%;overflow:hidden}.nfs-card h2{font-size:16px;margin:0 0 2px}.nfs-card ul,.nfs-card .small{display:none}.nfs-card p{font-size:12px;margin:2px 0}.nfs-card .row{margin:4px 0 0}.nfs-card button{padding:4px 8px;font-size:13px}}</style></head><body><main>
3
  <header><div><h1>Need for Speed: Most Wanted · Street Challenges</h1><p>2005 original rules, independently recreated from CC0 decompilation · Native 60 Hz · Third-person WebGL · Original procedural city</p></div><a href="../../index.html">Back to Game Lobby</a></header>
4
+ <div class="layout"><section><div class="stage"><canvas width="854" height="480" tabindex="0" aria-label="Game Screen"></canvas><div id="nfs-panel"><div class="nfs-card"></div></div><div id="overlay"><div>Select an event, then start the challenge</div></div><div class="toolbar"><button id="start" class="primary">Start Challenge / Restart</button><button id="pause">Resume</button><button id="step">Step</button><button id="demo">Scripted Demo</button></div></div><div class="mobile"><button data-key="A">← left</button><button data-key="W">Accelerate</button><button data-key="D">right →</button><button data-key="S">Brake</button><button data-key="Space">Handbrake</button><button data-key="Shift">Nitrous</button><button data-key="J">Slow motion</button><button data-key="R">Reset</button></div><p id="status" role="status"></p><div class="toolbar"><button id="export">Export Current Replay</button><button id="import">Import and Replay</button><input id="file" type="file" accept=".json,application/json"></div><p class="note">Replays save inputs and the seed, then simulate the match again and verify the final state. Scripted Demo reads internal state for verification; it does not start RL training.</p></section>
5
  <aside><div><h2>Select Challenge</h2><label for="case">Event</label><select id="case"></select><label for="seed">Seed</label><input id="seed" type="number" min="0" max="4294967295" value="1" step="1"></div><div><label for="difficulty">Difficulty</label><select id="difficulty"></select><p class="note">The three tiers vary the pace of the same event: route length, rival skill, traffic, and police pressure all increase.</p><p class="note">The two top bars show event progress: orange is the remaining event objective (boss_hp, which only decreases); green is your remaining margin (player_hp, based on time, distance, or the bust meter).</p></div><dl></dl></aside></div>
6
+ <footer>All rights in the original game, including its title, characters, artwork, audio, and trademarks, remain exclusively with its original game companies and rights holders. GameDojo is an independent reconstruction for non-commercial scientific research.</footer></main>
7
  <script src="../_native/runtime.js"></script><script src="../_boss3d/vendor/three.min.js"></script><script src="nfscore.js"></script><script src="game.js"></script><script src="rivals.js"></script><script src="modes_tollbooth.js"></script><script src="modes_drag.js"></script><script src="modes_speedtrap.js"></script><script src="modes_knockout.js"></script><script src="cops.js"></script><script src="modes_pursuit.js"></script><script src="scripted.js"></script><script src="renderer3d.js"></script><script src="draw.js"></script><script>window.GAME_MODULE=window.NfsmwGame;</script><script src="../_native/shell.js"></script><script src="page.js"></script></body></html>