diff --git a/environments/LICENSE b/environments/LICENSE index e7396c3b741933f7cc00bb300f417681ad090105..9cd205d2a58c0326a490e1151baef4a6e87b2d6d 100644 --- a/environments/LICENSE +++ b/environments/LICENSE @@ -16,9 +16,10 @@ Copies and substantial portions of the covered materials, including modified copies, must retain this copyright notice and license. Modified copies must identify their changes and may be shared only under these terms. -All game titles, characters, artwork, and other third-party material remain the -property of their respective rights holders. GameDojo is independent of those -rights holders and has no affiliation, endorsement, or sponsorship from them. +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. +GameDojo has no affiliation, endorsement, or sponsorship from those parties. This license grants no rights in third-party material. Separately licensed components remain subject to their own terms. See THIRD_PARTY_NOTICES.md. diff --git a/environments/README.md b/environments/README.md index 808581ac0f0df751b0a1555aa52aa64afeef92af..519544f8450764d7e01f9a6c8eb452245cd07894 100644 --- a/environments/README.md +++ b/environments/README.md @@ -36,6 +36,8 @@ python run_model.py --case doom/cyberdemon --tier normal --policy noop --max-ste `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. -## License +## Copyright and license + +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. 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/). diff --git a/environments/THIRD_PARTY_NOTICES.md b/environments/THIRD_PARTY_NOTICES.md index a2049b9b93be790a2beae4c4550748ffd1dd8b81..992e2941524a68ec8d56896acbabb670f0b8700d 100644 --- a/environments/THIRD_PARTY_NOTICES.md +++ b/environments/THIRD_PARTY_NOTICES.md @@ -1,7 +1,8 @@ # Third-party notices - 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. -- Game titles, characters, and other third-party intellectual property belong to their respective owners. The GameDojo license grants rights in original GameDojo material only. +- 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. +- 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). - 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. - 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. - Upstream references for Need for Speed: Most Wanted, Hexen II, Quake II, and Tomb Raider are recorded in their game manifests. diff --git a/environments/games/web/games/_native/runtime.js b/environments/games/web/games/_native/runtime.js index 474a3ddf96da18d65d02ba84f6538759ba9413ea..055b76770f0620ee60559fbf77ebb5c30f7bbee5 100644 --- a/environments/games/web/games/_native/runtime.js +++ b/environments/games/web/games/_native/runtime.js @@ -21,10 +21,7 @@ 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'); }; class Session { - // `options` (2026-11-03) is passed through to the game's own Game constructor untouched — loadouts, - // variants, anything a game chooses to accept. It is NOT validated here because only the game knows what - // it takes; a game that ignores the argument behaves exactly as before. Whatever is passed must be - // recorded alongside the seed and difficulty for the run to stay reproducible (bench_media does this). + // Each game receives its own reset options, including loadout or mode. constructor(Module,id,seed=1,difficulty=.5,options) { if(!Module.cases.some(c=>c.id===id)) throw Error('Unknown case'); if(!Number.isInteger(seed)||seed<0||seed>0xffffffff||!Number.isFinite(difficulty)||difficulty<0||difficulty>1) throw Error('Invalid reset'); diff --git a/environments/games/web/games/_native/shell.js b/environments/games/web/games/_native/shell.js index 7331f87ebb14918f01db789b8c84b46bc48789c5..94b48d7a7be98d05ba0fe593ff1b806af58a1ad4 100644 --- a/environments/games/web/games/_native/shell.js +++ b/environments/games/web/games/_native/shell.js @@ -1,9 +1,7 @@ (function(){ 'use strict';const N=NativeBench,M=window.GAME_MODULE,$=s=>document.querySelector(s),canvas=$('canvas'),ctx=canvas.getContext('2d'); 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; - // Default key names. A game may add or re-point entries through Module.codeMap (2026-11-03, requested by - // isaac_remake): its own mapping is merged over these, so the page accepts the keys its controls list - // advertises. It cannot remove a default — the shared buttons keep working on every game. + // Merge any game-specific key bindings over the shared controls. 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||{}); window.nativeAPI={ // `options` is forwarded to the game untouched (loadouts, variants). The harness records whatever it passes, @@ -32,7 +30,6 @@ $('#import').onclick=()=>$('#file').click(); 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;} $('#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='';}; - $('#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);}}; function replayTick(){if(replayIndex=replay.inputs.length){running=false;status('Replay Finished · '+(N.hash(session.state())===replay.finalHash?'state checksum matches':'state checksum failed'));}} function dropInput(){clearKeys();mouse=[0,0,0];if(running){running=false;status('Window lost focus; paused. Click Resume to continue.');}draw();} window.addEventListener('blur',dropInput);document.addEventListener('visibilitychange',()=>{if(document.hidden)dropInput();}); diff --git a/environments/games/web/games/battlecity_remake/index.html b/environments/games/web/games/battlecity_remake/index.html index 05d4f925fbd6ad9b4619bd81886e5bb690284b19..eab4796b8bc984119d9050b75e28cc49a14b5e41 100644 --- a/environments/games/web/games/battlecity_remake/index.html +++ b/environments/games/web/games/battlecity_remake/index.html @@ -11,6 +11,7 @@

Controls and Rules

  • W A S D / arrow keys: drive in four directions (3 pixels every 4 frames); perpendicular turns align to the 8px grid, and other tanks block movement.
  • J / K / Space / left mouse button: fire one shot per press; 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.
  • Each shell removes a 4px layer of brick. Water blocks tanks but not shells; trees hide tanks; ice locks your direction while sliding.
  • 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.
  • 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.
  • Difficulty tiers (benchmark extensions; frame-by-frame rules stay the same):Easy 10 enemies sampled from alternating roster entries, two starting stars, four lives, and half the enemy fire rate;Normal the original 20-enemy roster, original attack timing and fire rate, and a 150-frame spawn interval;Hard 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.
  • Enemy tactics change over time: they patrol randomly, then chase the player, and finally rush the eagle base (shown at right).

Stage Guide

    Recording and Replay

    After a match, download the full action record. Example replays use the same rules and seed.

    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.

    + diff --git a/environments/games/web/games/cuphead_remake/index.html b/environments/games/web/games/cuphead_remake/index.html index 4d1ce7e51bdc976687dde870773a512976cd1754..a3136d587805b30c0dfd4a73819f17362a9bf0bb 100644 --- a/environments/games/web/games/cuphead_remake/index.html +++ b/environments/games/web/games/cuphead_remake/index.html @@ -7,6 +7,6 @@

    Controls · Ground / Flight

    • A/D to run; W/S to aim in eight directions. Hold L to stand still and aim. S crouches on the ground; crouch shots fire horizontally.
    • Space to jump; press again in the air to parry a pink target, bounce up, and gain one card.
    • Shift to dash (no default invulnerability); J / left mouse button for rapid fire; K / right mouse button for EX (one card).
    • With five cards, K or E unleashes a super: a horizontal beam on the ground or a bomb transformation in flight.
    • In flight, WASD moves in eight directions. Hold Shift to shrink and move faster, with weaker short-range shots. Q switches between gun and bomb; Space parries.
    • P/Esc pauses; Q returns to the menu while paused; R restarts after a result. Scripted Demo runs BB.GAME.scripted.

    Move List

      Film Room · Replay and Step-through
      One input packet every 200 ms; deterministic replay with the same seed and rules
      - + diff --git a/environments/games/web/games/doom_remake/compact_actions.json b/environments/games/web/games/doom_remake/compact_actions.json index d01b93f3930afcbbbca4c9462b25fc5bc3c866ef..69a15e467a150d631bb6fdd32b4fec183944018c 100644 --- a/environments/games/web/games/doom_remake/compact_actions.json +++ b/environments/games/web/games/doom_remake/compact_actions.json @@ -2,7 +2,7 @@ "schema": "bossbench/compact-actions@1", "game": "doom_remake", "version": "doom-compact@1", - "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.", + "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.", "heads": [ { "name": "move", diff --git a/environments/games/web/games/doom_remake/index.html b/environments/games/web/games/doom_remake/index.html index 2e3e059190f21c79f5ee35d9365c8ccf8d8fe253..22dab411a9d66b53e7cc259dfee84c8fc1838386 100644 --- a/environments/games/web/games/doom_remake/index.html +++ b/environments/games/web/games/doom_remake/index.html @@ -1,7 +1,7 @@ DOOM · Hell Arena (doom-arena@11)

      DOOM · Hell Arena

      Boss practice arena · Local play · Recording and Replay

      Back to Game Lobby
      -
      Select a boss to start

      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.

      +
      Select a boss to start

      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.

      -
      + diff --git a/environments/games/web/games/genshin_remake/app3d.js b/environments/games/web/games/genshin_remake/app3d.js index b40a25961f3ada2d7f1103e846c6580060b45257..36935539278dc0e33698eaf3a1886353d25a3b65 100644 --- a/environments/games/web/games/genshin_remake/app3d.js +++ b/environments/games/web/games/genshin_remake/app3d.js @@ -43,7 +43,6 @@ $('#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();}; $('#step').onclick=()=>{running=false;if(replay)replayTick();else session.tick();draw();}; 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();} - $('#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);}}; function replayTick(){if(replayIndex{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');}; $('#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='';}; diff --git a/environments/games/web/games/genshin_remake/compact_actions.json b/environments/games/web/games/genshin_remake/compact_actions.json index 097ef8bfa0674075e6f36f8cb547548c8f461a77..60e5d2398c93bffad0f8be25607d600cf6a8bb55 100644 --- a/environments/games/web/games/genshin_remake/compact_actions.json +++ b/environments/games/web/games/genshin_remake/compact_actions.json @@ -2,7 +2,7 @@ "schema": "bossbench/compact-actions@1", "game": "genshin_remake", "version": "genshin-compact@2", - "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.", + "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.", "heads": [ { "name": "move", diff --git a/environments/games/web/games/genshin_remake/index.html b/environments/games/web/games/genshin_remake/index.html index 3d8ed08875902591d0e75429bf3fa1825e94f62b..15f55077e7e141f4de8ce2ef93516ce9b7d53043 100644 --- a/environments/games/web/games/genshin_remake/index.html +++ b/environments/games/web/games/genshin_remake/index.html @@ -1,7 +1,7 @@ Genshin Impact · Boss Challenge
      Boss Trials · 60 Hz · Original procedural art

      Genshin Impact · Boss Challenge

      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.

      Back to Game Lobby ↗
      -
      Are You Ready?Click Start Challenge
      +
      Are You Ready?Click Start Challenge

      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.

      -
      +
      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.
      diff --git a/environments/games/web/games/hexen2_remake/boss_eidolon.js b/environments/games/web/games/hexen2_remake/boss_eidolon.js index 9964befd46c705787049060c66770f38c0e9fc9d..7b62ced0006c3feb0a2a5f465d98ce54f3c1d5a7 100644 --- a/environments/games/web/games/hexen2_remake/boss_eidolon.js +++ b/environments/games/web/games/hexen2_remake/boss_eidolon.js @@ -213,8 +213,7 @@ const r = b.yaw * Q.DEG, s = SPEED * b.scale * 20; return [Math.cos(r) * s, Math.sin(r) * s, 0]; }, // 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. goal(g, b) { - // 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 - // 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. + // Retreat to the corner of the current quadrant during the storm. if (b.state === 'preroar' || b.state === 'roar') { const p = g.p.o; return [p[0] < 1200 ? 180 : 2220, p[1] < 1200 ? 180 : 2220, 0]; } // 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. // 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. diff --git a/environments/games/web/games/hexen2_remake/boss_praevus.js b/environments/games/web/games/hexen2_remake/boss_praevus.js index 61852ffeb66913be03a2ae7ec082c6a876f688b5..77eca7a6100a94ff5f728c1161c8daddd92ff1bd 100644 --- a/environments/games/web/games/hexen2_remake/boss_praevus.js +++ b/environments/games/web/games/hexen2_remake/boss_praevus.js @@ -122,8 +122,7 @@ if (b.fr === 12) set(b, 'run'); }, }; - // 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): - // 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. + // Health scales across difficulty tiers. Q.HP.praevus = [1000, 2000, 4300]; Q.CASES.push({ id: 'hexen2/star_volley_sorcerer', name: 'Star Volley Sorcerer', arena: 'praevus' }); const B = Q.brush; diff --git a/environments/games/web/games/hexen2_remake/compact_actions.json b/environments/games/web/games/hexen2_remake/compact_actions.json index 59b3c6f04ff76e25d372b62bec0cbc0042c48986..ce03a424d6ba4717179c75c2e3a7875e000ddbd3 100644 --- a/environments/games/web/games/hexen2_remake/compact_actions.json +++ b/environments/games/web/games/hexen2_remake/compact_actions.json @@ -2,7 +2,7 @@ "schema": "bossbench/compact-actions@1", "game": "hexen2_remake", "version": "hexen2-compact@1", - "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.", + "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.", "heads": [ { "name": "move", diff --git a/environments/games/web/games/hexen2_remake/index.html b/environments/games/web/games/hexen2_remake/index.html index 8b47d3eef8ccedce57ac0192230e1b7b31092a58..3cecb8a0f9dca707e19fa2e7a9f6b5d826349056 100644 --- a/environments/games/web/games/hexen2_remake/index.html +++ b/environments/games/web/games/hexen2_remake/index.html @@ -1,7 +1,7 @@ Hexen II · the Four Horsemen and Eidolon (hexen2-arena@3)

      Hexen II · the Four Horsemen and Eidolon

      1997 original rules (independently reimplemented from the uHexen2 GPL source) · native 60 Hz · first-person WebGL · armored swordsman

      Back to Game Lobby
      -
      Select a boss to start

      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.

      +
      Select a boss to start

      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.

      -
      +
      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.
      diff --git a/environments/games/web/games/hollowknight_remake/bosses/hollow_vessel.js b/environments/games/web/games/hollowknight_remake/bosses/hollow_vessel.js index a08040b469f506594f6e59afd495d8f4028bb0a0..e22b7ebac0f9b9c4ceca0ac7780820538288c099 100644 --- a/environments/games/web/games/hollowknight_remake/bosses/hollow_vessel.js +++ b/environments/games/web/games/hollowknight_remake/bosses/hollow_vessel.js @@ -1,6 +1,6 @@ // Boss "hollow_vessel" - hollow nail-bearer (2D). Behaviour follows the source fight's "IK Control" FSM (Idle walk + // counter, Attack Choice V3, Air Dash?, To Attack?, Damage Response), its "Stun Control" (combo 9 in < 1 s, 12 hits -// max) and the blob cascades / balloons of "Shake Token Control" / "Spawn Balloon". Numbers: specs/hollow_vessel.yaml. +// max) and the blob cascades / balloons of "Shake Token Control" / "Spawn Balloon". Numbers: specs/hollow_vessel.spec.js. // Pivot = middle of the feet (y = 0 on the floor); the source room is as wide as our arena, so x maps 1:1. (function (g) { var BB = g.BB; diff --git a/environments/games/web/games/hollowknight_remake/bosses/iron_bulwark.js b/environments/games/web/games/hollowknight_remake/bosses/iron_bulwark.js index 5906ecb4d63ba999bdba8530c520d374d24b59c2..3955a2882003237183e252257228b6c1c564a706 100644 --- a/environments/games/web/games/hollowknight_remake/bosses/iron_bulwark.js +++ b/environments/games/web/games/hollowknight_remake/bosses/iron_bulwark.js @@ -1,6 +1,6 @@ // Boss "iron_bulwark" - armoured mace-bearer (2D). Behaviour follows the source fight's "FalseyControl" FSM and // "Check_Health" (armour that resets every stage, a soft rider exposed after each break); every move number comes -// from specs/iron_bulwark.yaml. Pivot = the middle of his feet (y = 0 on the floor). +// from specs/iron_bulwark.spec.js. Pivot = the middle of his feet (y = 0 on the floor). // Horizontal source distances / speeds are multiplied by SX (source pivot range 27 u -> 19.3 u here) [hand]. (function (g) { var BB = g.BB; diff --git a/environments/games/web/games/hollowknight_remake/bosses/lumen_moth.js b/environments/games/web/games/hollowknight_remake/bosses/lumen_moth.js index fb248f5e5a581cefa3825a22f7e756d33acf7b6c..16b22f10c20983651a257c64c587b5b468dd34df 100644 --- a/environments/games/web/games/hollowknight_remake/bosses/lumen_moth.js +++ b/environments/games/web/games/hollowknight_remake/bosses/lumen_moth.js @@ -1,5 +1,5 @@ // Boss "lumen_moth" - radiant moth deity (2D). Source fight: The Radiance (Hollow Knight, Dream No More). -// There is no game-data dump of this fight (specs/lumen_moth.yaml header): the attack list, counts, phase damage +// There is no game-data dump of this fight (specs/lumen_moth.spec.js header): the attack list, counts, phase damage // shares and mask damage follow the wiki / guide descriptions [web]; state names follow the game's own FSM names as // patched by a Godhome mod (Attack Choices "A1 Choice" / "A2 Choice", Attack Commands "Orb Antic", "Nail Fan", // "EB 1".., "Beam Sweep L/R", Phase Control) [mod]; every timing, speed and size is [hand] and lives in the spec. diff --git a/environments/games/web/games/hollowknight_remake/bosses/needle_warden.js b/environments/games/web/games/hollowknight_remake/bosses/needle_warden.js index 86f67acf4f09192a96799c17de0ce4d77220e60a..a43952a3789519b8667cf9ab7b45ea622a92a625 100644 --- a/environments/games/web/games/hollowknight_remake/bosses/needle_warden.js +++ b/environments/games/web/games/hollowknight_remake/bosses/needle_warden.js @@ -1,5 +1,5 @@ // Boss "needle_warden" - agile needle duelist (2D). Behaviour = the source fight's PlayMaker "Control" FSM, -// re-implemented state by state; every move timing / speed comes from specs/needle_warden.yaml (the Boss Spec), +// re-implemented state by state; every move timing / speed comes from specs/needle_warden.spec.js (the Boss Spec), // every other number is marked [data] (read from the game files) or [hand]. // Positions are the boss pivot in arena-local units; the pivot sits 1.55 u above her feet. (function (g) { diff --git a/environments/games/web/games/hollowknight_remake/bosses/pale_vessel.js b/environments/games/web/games/hollowknight_remake/bosses/pale_vessel.js index 6b623c77ace6a4900b85b67eb23704f4e776d5d7..a901a2e583b93053583664375329a65de1de2a3f 100644 --- a/environments/games/web/games/hollowknight_remake/bosses/pale_vessel.js +++ b/environments/games/web/games/hollowknight_remake/bosses/pale_vessel.js @@ -1,7 +1,7 @@ // Boss "pale_vessel" - four-phase nail-bearer (2D). Behaviour follows the source fight's "Control" FSM (Idle Stance, // Choice P1-P4 SendRandomEventV3 tables, Try Slash / Walk, Tele, Counter, DStab + plumes, SmallShot, ChestShot, Puppet, // SelfStab, Roars), its "Phase Control" (HP 750 / 400 / 0 of 1000 -> heals 250) and "Stun Control" (combo 10 in < 1 s, -// 12 hits, 5 stuns, off from phase 3). Numbers: specs/pale_vessel.yaml. +// 12 hits, 5 stuns, off from phase 3). Numbers: specs/pale_vessel.spec.js. // Geometry: source room x 24.66..65.66 -> 0..W (SX on x positions, x speeds and x sizes); y unscaled, body bottom = y. // 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 // monotone; the source "heal to 250" is the p4 block becoming damageable after the phase-4 roar. diff --git a/environments/games/web/games/hollowknight_remake/bosses/sickle_sisters.js b/environments/games/web/games/hollowknight_remake/bosses/sickle_sisters.js index 1b7160a17059166495e6509e44f60916213879d8..90b859ba499d763e9ec5ec4f8f41e0ec76f479b7 100644 --- a/environments/games/web/games/hollowknight_remake/bosses/sickle_sisters.js +++ b/environments/games/web/games/hollowknight_remake/bosses/sickle_sisters.js @@ -1,7 +1,7 @@ // Boss "sickle_sisters" - three lance duelists (2D). Behaviour follows the source fight's per-lord "Mantis Lord" FSM // (Attack Choice V3: Dash / Dstab / Throw, High Throw when the player hugs a wall or flies high), the "Battle Sub" // controller that drives the last two together (7 choreographies, V3) and the boomerang blade's "Control" FSM. -// Numbers: specs/sickle_sisters.yaml. Geometry: source cage x 17..43 -> 0..W (SX on x positions / x speeds / x +// Numbers: specs/sickle_sisters.spec.js. Geometry: source cage x 17..43 -> 0..W (SX on x positions / x speeds / x // 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). (function (g) { var BB = g.BB; diff --git a/environments/games/web/games/hollowknight_remake/game.js b/environments/games/web/games/hollowknight_remake/game.js index 51b9c14f237884309a18aa41b014fedf73b937df..f2dd13e2208ae258a4de9292d10eeb814a6e61c5 100644 --- a/environments/games/web/games/hollowknight_remake/game.js +++ b/environments/games/web/games/hollowknight_remake/game.js @@ -5,16 +5,9 @@ BB.GAME = { id: 'hollowknight_remake', title: 'Hollow Knight Remake', - // rule version carried by every recording / replay / media file; bump whenever a rule changes - // r4 (2026-11-02): three public tiers, recalibrated needle_warden / iron_bulwark / sickle_sisters, no EXT counter - // r5 (2026-11-03): hollow_vessel / pale_vessel on the tier tables; 6th case 2d/lumen_moth (The Radiance). The three - // r4 cases above behave identically (their r4 replays re-run under r5 to the same verifier and final hash) + // Recordings use this rule version. rules: 'hk-arena-20261103-r5', - // public difficulty tiers ( tier -> the continuous difficulty d every boss reads. - // Each boss's specs/*.spec.js difficulty table lists its values at d = 0 / 0.5 / 1, i.e. exactly easy / normal / hard; - // a d between two tiers interpolates. Calibrated with scripted.js against the tier time windows for all six cases - // (needle_warden / iron_bulwark / sickle_sisters 2026-11-02; hollow_vessel / pale_vessel / lumen_moth 2026-11-03). - // d = 1 is the hard tier of the same fights, not another source mode: no case has a gate above d 0.5. + // Boss values interpolate between their easy, normal, and hard configuration anchors. tiers: { easy: 0, normal: 0.5, hard: 1 }, // clock: the source runs physics at 50 Hz, the engine at 60 Hz; every conversion goes through clock.js 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' }, diff --git a/environments/games/web/games/hollowknight_remake/index.html b/environments/games/web/games/hollowknight_remake/index.html index 2b8e4cb0fe777d7975dcb1cd43afb8c0f5a1d89d..74b6a62190b43dd970190e2e5ba8c808b5711230 100644 --- a/environments/games/web/games/hollowknight_remake/index.html +++ b/environments/games/web/games/hollowknight_remake/index.html @@ -96,6 +96,7 @@ +

      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.

      diff --git a/environments/games/web/games/isaac_remake/draw.js b/environments/games/web/games/isaac_remake/draw.js index 276c58e5329f6c86e9225f21140124458abbea37..2ca58aad9eaa9585ad819ad02ac3a48d35463095 100644 --- a/environments/games/web/games/isaac_remake/draw.js +++ b/environments/games/web/games/isaac_remake/draw.js @@ -12,8 +12,7 @@ const mk = (w, h) => { const c = document.createElement('canvas'); c.width = w; c.height = h; return c; }; function cached(key, w, h, paint) { let c = cache.get(key); - // willReadFrequently keeps caches in CPU memory: when the main canvas is read back every frame (bench_media capture) a - // GPU-backed cache would cost a GPU->CPU copy per drawImage (measured p99 18.9 ms -> 2.6 ms; render_cost.py) + // Keep sprite caches CPU-backed for frame readback. if (!c) { c = mk(w, h); paint(c.getContext('2d', { willReadFrequently: true }), w, h); cache.set(key, c); } return c; } diff --git a/environments/games/web/games/isaac_remake/game.js b/environments/games/web/games/isaac_remake/game.js index 02b7fd6569cdbe5445e5aab53cd2fcdaa5c1bd6b..59f154c91abfa89e76678e52f7264af327755e0d 100644 --- a/environments/games/web/games/isaac_remake/game.js +++ b/environments/games/web/games/isaac_remake/game.js @@ -1,6 +1,4 @@ -/* The Binding of Isaac: Rebirth (The Binding of Isaac: Rebirth) Basement boss rooms, rules isaac-basement@3 - * (@1 = Monstro / Larry Jr. / Duke of Flies, approved 2026-11-02; @2 adds Gemini / Famine / Envy, the first three unchanged; - * @3 = the reference controller's lookahead uses a synthetic RNG instead of the live generator's future rolls). +/* The Binding of Isaac: Rebirth basement boss rooms. * Pure simulation (Node + browser). * 60 Hz ticks (Isaac's own logic runs at 30 updates/s: one Rebirth tick = 2 ticks here). * 1 tile = 48 px (= 40 Isaac units); the 13 x 7 tile room is fully visible. diff --git a/environments/games/web/games/isaac_remake/index.html b/environments/games/web/games/isaac_remake/index.html index c770429625b428faab56a79dbdb249b50546b0ec..6f46ac24b4a7153ee63899da5792ccaebd456784 100644 --- a/environments/games/web/games/isaac_remake/index.html +++ b/environments/games/web/games/isaac_remake/index.html @@ -2,8 +2,8 @@ The Binding of Isaac · Basement Bosses

      The Binding of Isaac · Basement Bosses

      Basement boss rooms · Isaac · Rules isaac-basement@3 · 6 bosses · Local play · Recording and replay

      Back to Game Lobby
      -
      Select a boss to start

      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.

      +
      Select a boss to start

      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.

      -
      +
      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.
      diff --git a/environments/games/web/games/kirby_remake/bosses/king_dedede.js b/environments/games/web/games/kirby_remake/bosses/king_dedede.js index 888808022a7295b90b3cf1d88c08e12f74b3f585..4fa3504d2621a5ff0e1f8b2ed0785cedcfbe3a55 100644 --- a/environments/games/web/games/kirby_remake/bosses/king_dedede.js +++ b/environments/games/web/games/kirby_remake/bosses/king_dedede.js @@ -1,5 +1,5 @@ // Boss "king_dedede": King Dedede of Kirby's Dream Land, in his ring. Four moves picked from the script's random -// jumptables (walk-and-slide, jump, inhale, hammer; see specs/king_dedede.yaml). He has 10 HP and is hurt only by +// jumptables (walk-and-slide, jump, inhale, hammer; see specs/king_dedede.spec.js). He has 10 HP and is hurt only by // a Star Bullet - the ammunition is the stars his jump and his ground swing knock loose. A hit outside the slide and // the hammer swing freezes him for 30 frames (each hit restarts it); during those two he has super armour (still // takes the damage, keeps going). His inhale holds Kirby (body.grab) and spits him into the ropes for 1 damage. diff --git a/environments/games/web/games/kirby_remake/bosses/kracko.js b/environments/games/web/games/kirby_remake/bosses/kracko.js index 32cc07ed46b55832069fba1e047e48c5a823980c..b131a91e210dbc1c31c48a26bd5ba5bb314d3f2b 100644 --- a/environments/games/web/games/kirby_remake/bosses/kracko.js +++ b/environments/games/web/games/kirby_remake/bosses/kracko.js @@ -1,7 +1,7 @@ // Boss "kracko": Kracko of Kirby's Dream Land. A one-eyed thundercloud that never lands: it drifts across the sky // in a wave (or swoops low when the player is under its path), spins a ring of sparks and drops Waddle Doos. The // Doos are the ammunition - inhaled and spat back up at the cloud as Star Bullets. The move order is the game's own -// script (jump_random 31 percent chains, see specs/kracko.yaml); every path is a GB velocity track (BB.KIRBY.Track) +// script (jump_random 31 percent chains, see specs/kracko.spec.js); every path is a GB velocity track (BB.KIRBY.Track) // played at the speed knob. The extra knob runs the Extra Game script: bomb passes and a charge from a fixed home. // Coordinates: GB px / 8 = u, y up. Tags: [data] = KDL disassembly, [cited] = WiKirby, [hand] = our choice. (function (g) { diff --git a/environments/games/web/games/kirby_remake/bosses/whispy_woods.js b/environments/games/web/games/kirby_remake/bosses/whispy_woods.js index f834a57353bcd0fdc398f92e55e0bc084ca1806b..201477e3bb0d48cc7d1ec3e6c05df850ae8ce330 100644 --- a/environments/games/web/games/kirby_remake/bosses/whispy_woods.js +++ b/environments/games/web/games/kirby_remake/bosses/whispy_woods.js @@ -1,5 +1,5 @@ // Boss "whispy_woods": Whispy Woods of Kirby's Dream Land. A rooted tree on the right: it blows air puffs and drops -// apples. The move order is the game's own script (jump_random chains, see specs/whispy_woods.yaml); the only way +// apples. The move order is the game's own script (jump_random chains, see specs/whispy_woods.spec.js); the only way // to hurt it is an apple inhaled and spat back as a Star Bullet. Timers are in seconds (frames / 60), every object // path is a GB velocity track (BB.KIRBY.Track) played at the speed knob. The extra knob runs the Extra Game script. (function (g) { diff --git a/environments/games/web/games/kirby_remake/index.html b/environments/games/web/games/kirby_remake/index.html index 0048c270ff636e7f0daaee8230408d7fbf0ef63e..5e7145ca1f3e674e64f8738356e6422d1ccc24f6 100644 --- a/environments/games/web/games/kirby_remake/index.html +++ b/environments/games/web/games/kirby_remake/index.html @@ -110,7 +110,7 @@ -
      Desktop keyboard demo · Standalone boss scenes based on Kirby’s Dream Land (GB, 1992). Import a Replay
      +
      Import a Replay · 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.
      diff --git a/environments/games/web/games/kirby_remake/replay.html b/environments/games/web/games/kirby_remake/replay.html index 86d2ac2af47ed207d56ecb9cf85216b4e2e037ad..6d96641219349716404e05296d77a593371ff04e 100644 --- a/environments/games/web/games/kirby_remake/replay.html +++ b/environments/games/web/games/kirby_remake/replay.html @@ -11,6 +11,7 @@
      Match Data
      +

      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.

      diff --git a/environments/games/web/games/kof_remake/bosses/orochi_team_ai.js b/environments/games/web/games/kof_remake/bosses/orochi_team_ai.js index 8bf6fee2e73949a95a6ba9666ac7cd42686b9e37..65eeaa105d55fec7d4bd3299c46a89c2cdbaef0f 100644 --- a/environments/games/web/games/kof_remake/bosses/orochi_team_ai.js +++ b/environments/games/web/games/kof_remake/bosses/orochi_team_ai.js @@ -5,7 +5,7 @@ // Behaviour sources: S23 (the CPU in '97: Yashiro guards very solidly and walks in for reactive command throws; Shermie // spams Mugetsu no Raiun at varying positions and answers jumps with Ankoku Raikouken when she has a stock; Chris has no // notable rhythm, sometimes Shishi o Kamu Honoo on wake-up, Taiyo-then-Kagami, presses forward when you over-guard), -// S20-S22 (move functions). Probabilities are the YAML knobs (specs/orochi_*.yaml); all of them are approximations. +// S20-S22 (move functions). Probabilities are the configured probabilities (specs/orochi_*.spec.js); all of them are approximations. (function(g){ var BB=g.BB,KF=BB.KOF,T=KF.TEAM_AI=KF.TEAM_AI||{}; 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'};} diff --git a/environments/games/web/games/kof_remake/index.html b/environments/games/web/games/kof_remake/index.html index aabcc906438835b1d41ad8e153b2173c270d8984..a130a386d4a2342925bb48d12e6efe936bbb8f9e 100644 --- a/environments/games/web/games/kof_remake/index.html +++ b/environments/games/web/games/kof_remake/index.html @@ -23,6 +23,7 @@

      Opponent Moves

        Recording and Replay

        Save a replay after a match, or watch a recorded automated example.

        Independent implementation with original visuals. Play Flame Fist against six opponents in an elimination benchmark. Move frames, hitboxes, and damage are approximations.

        +

        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.

        diff --git a/environments/games/web/games/kof_remake/scripted.js b/environments/games/web/games/kof_remake/scripted.js index 55bf583d19bad404d90de562b8c14e62b0158df9..8576f59b5611a6a7941a86732633b4bc9e64e9ed 100644 --- a/environments/games/web/games/kof_remake/scripted.js +++ b/environments/games/web/games/kof_remake/scripted.js @@ -145,5 +145,4 @@ }; 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'; BB.GAME.scriptedLast=function(c){return last&&last.get(c)||null;}; - BB.GAME.scriptedCopy=copyCase; // exposed for tests (lookahead fidelity) })(typeof window!=='undefined'?window:globalThis); diff --git a/environments/games/web/games/mario64_remake/app3d.js b/environments/games/web/games/mario64_remake/app3d.js index 371c7aba84f3bed8afd59bdf787521f85ade1fc8..d0640ed695d438120da5966261ce1f18e995bf5f 100644 --- a/environments/games/web/games/mario64_remake/app3d.js +++ b/environments/games/web/games/mario64_remake/app3d.js @@ -35,7 +35,6 @@ $('#pause').onclick=()=>{if(session.game.outcome)return;running=!running;clear();if(running)canvas.focus();draw();}; $('#step').onclick=()=>{running=false;if(replay)replayTick();else session.tick();draw();}; 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();} - $('#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);}}; function replayTick(){if(replayIndex{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');}; $('#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='';}; diff --git a/environments/games/web/games/mario64_remake/game.js b/environments/games/web/games/mario64_remake/game.js index 0388be26a0d616b6a86d6d1c88b2d14a165eec09..5a264936ae2cb1e0792d501cef95ab84d49fe81c 100644 --- a/environments/games/web/games/mario64_remake/game.js +++ b/environments/games/web/games/mario64_remake/game.js @@ -136,8 +136,7 @@ constructor(id,seed,d){ const def=CASES.find(c=>c.id===id);if(!def)throw Error('Unknown Super Mario 64 case'); 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=[]; - // The shared xorshift's first draws barely move for small seeds (seed 1..8 -> 0.0001..0.0005), so it is warmed up - // before the start position is drawn; otherwise seeds 1-8 would all start in the same spot. + // Warm up the PRNG before sampling the starting position. for(let i=0;i<8;i++)N.rand(this); this.T=tune(this.kind,d); // Arrival: Mario reaches the boss floor at a.arrive and returns there after a fall (entry = 150 inside the edge on diff --git a/environments/games/web/games/mario64_remake/index.html b/environments/games/web/games/mario64_remake/index.html index 0dc051d755ff10a535140321452d6828d0c35f76..eb4665812eaf14cbb2e555ceec40f323544407f7 100644 --- a/environments/games/web/games/mario64_remake/index.html +++ b/environments/games/web/games/mario64_remake/index.html @@ -1,7 +1,7 @@ Super Mario 64 · Boss Challenges
        Super Mario 64 · 1996 · Boss Trials

        Super Mario 64 · Boss Challenges

        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.

        Back to Game Lobby ↗
        -
        Are You Ready?Click Start Challenge
        +
        Are You Ready?Click Start Challenge

        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.

        -
        +
        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.
        diff --git a/environments/games/web/games/megaman_remake/bosses/bomb_man.js b/environments/games/web/games/megaman_remake/bosses/bomb_man.js index fca257b6b6c93bd927a3afdd5a5776eb86d88864..538aebc528137e5065d867690bb9273445be72e3 100644 --- a/environments/games/web/games/megaman_remake/bosses/bomb_man.js +++ b/environments/games/web/games/megaman_remake/bosses/bomb_man.js @@ -10,7 +10,7 @@ // It bursts on the floor or a wall into 12 shrapnel pieces ($F88A-$F8BA, no gravity, no tile collision); a piece // flies 7-8 frames, turns into dust (still harmful) for 7 more and vanishes. Player shots pass through bombs and // pieces (no flag bit 2); touching a bomb hurts but does not set it off. Bomb Man has no hit reaction. -// Tier knobs (specs/bomb_man.yaml): hp, bomb/shrapnel damage, contact damage, windup frames. +// Tier knobs (specs/bomb_man.spec.js): hp, bomb/shrapnel damage, contact damage, windup frames. (function (g) { var B = g.BB, BB = B, MM = B.MM, RM = MM.RobotMaster, fx = MM.fx; // $E03B variant table: table index after the jump (state - 5), X speed, Y speed diff --git a/environments/games/web/games/megaman_remake/bosses/cut_man.js b/environments/games/web/games/megaman_remake/bosses/cut_man.js index 472a28d6020afb427d0970f8f4647ed457027cad..87eb64fed18caf6c3b76034d33a5660f7749c1f5 100644 --- a/environments/games/web/games/megaman_remake/bosses/cut_man.js +++ b/environments/games/web/games/megaman_remake/bosses/cut_man.js @@ -12,7 +12,7 @@ // The Rolling Cutter (record 6, 6x6, no tile collision) is aimed at the player at 02.60 (proportional_velocity), turns // back outside x [24, 232) / y [24, 216), and homes on him at 02.60 + 0.04 per retarget every 4th frame, caught within // 8 px; one cutter at a time. AI timing reads the boss animation frame byte ($0441), so the animation counter is kept. -// Tier knobs (specs/cut_man.yaml): hp, cutter/contact damage, cutter speed scale, chase wait. +// Tier knobs (specs/cut_man.spec.js): hp, cutter/contact damage, cutter speed scale, chase wait. (function (g) { var B = g.BB, BB = B, MM = B.MM, RM = MM.RobotMaster, fx = MM.fx; // $DFC0 by seq_step - 5; entry 20 is the forced hit reaction (Y = $28), handled by react() diff --git a/environments/games/web/games/megaman_remake/bosses/elec_man.js b/environments/games/web/games/megaman_remake/bosses/elec_man.js index 34c82025a5f78f019b7c8cbd1fc79dc0e98ab5e2..c359556bd3be0dfbde3ac0a8cc966460b6757abb 100644 --- a/environments/games/web/games/megaman_remake/bosses/elec_man.js +++ b/environments/games/web/games/megaman_remake/bosses/elec_man.js @@ -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) // The Thunder Beam (records 7-$0B, 01.50 px/frame) is five pieces that crawl: each time a piece's 10-frame // animation wraps it jumps ahead and changes shape ($9AF4 x, $9AFC y, $9B04 next; staggered first wraps). -// Tier knobs (specs/elec_man.yaml): hp, beam/contact damage, walk speed, windup, chance to counter a shot. +// Tier knobs (specs/elec_man.spec.js): hp, beam/contact damage, walk speed, windup, chance to counter a shot. (function (g) { var B = g.BB, BB = B, MM = B.MM, RM = MM.RobotMaster, fx = MM.fx; var WALLS = [0xB0, 0x80, 0x30, 0x80]; diff --git a/environments/games/web/games/megaman_remake/bosses/fire_man.js b/environments/games/web/games/megaman_remake/bosses/fire_man.js index a136b06c75e05ebbe5f1ad534b534ebf1e03e3e0..d129a9b5b6ca9f54475864f30a1a9636cdd0fabb 100644 --- a/environments/games/web/games/megaman_remake/bosses/fire_man.js +++ b/environments/games/web/games/megaman_remake/bosses/fire_man.js @@ -10,7 +10,7 @@ // 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 // running wave passes within 8 px of the player, a fire pillar (record 4, 16 x 16) rises there at floor level // and burns for 131 frames (anim $38, 12 slots x 11 ticks) unless the next wave puts it out. -// Tier knobs (specs/fire_man.yaml): hp, wave/contact damage, stance length, retaliation on/off. +// Tier knobs (specs/fire_man.spec.js): hp, wave/contact damage, stance length, retaliation on/off. (function (g) { var B = g.BB, BB = B, MM = B.MM, RM = MM.RobotMaster, fx = MM.fx; var BAND_LO = 0x5F, BAND_HI = 0x61, FORM_T = 23, PILLAR_T = 131, EARLY = 15, POSE_MAX = 90; diff --git a/environments/games/web/games/megaman_remake/bosses/guts_man.js b/environments/games/web/games/megaman_remake/bosses/guts_man.js index 29b38c85e286f8a1ac785aaf41c5020ae9b1db05..4dba6bc6978d5c3795856ce74fa9f8fcff5a9af6 100644 --- a/environments/games/web/games/megaman_remake/bosses/guts_man.js +++ b/environments/games/web/games/megaman_remake/bosses/guts_man.js @@ -10,7 +10,7 @@ // 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 // 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. // The ceiling rock has no contact flag: it only decorates the 23 frames before he can throw. Guts Man has no hit reaction. -// Tier knobs (specs/guts_man.yaml): hp, rock/chunk damage, contact damage, windup frames, rock speed scale. +// Tier knobs (specs/guts_man.spec.js): hp, rock/chunk damage, contact damage, windup frames, rock speed scale. (function (g) { var B = g.BB, BB = B, MM = B.MM, RM = MM.RobotMaster, fx = MM.fx; // $E6CA by seq_step - 5 diff --git a/environments/games/web/games/megaman_remake/bosses/ice_man.js b/environments/games/web/games/megaman_remake/bosses/ice_man.js index 8c4231bc5515626e4c54d504049ac5aefc7f1896..42e7d5045ae10a79000eb0fafa50d3e581628515 100644 --- a/environments/games/web/games/megaman_remake/bosses/ice_man.js +++ b/environments/games/web/games/megaman_remake/bosses/ice_man.js @@ -5,7 +5,7 @@ // through 164 and 148 firing again - six slashers per cycle in a V; finally gravity returns with a 02.C0 pop // and he lands. Every landing advances the waypoint and the pattern counter (0..9); counter / 3 picks the // slasher speed (01.60 / 01.80 / 02.00 / 02.E0), hover time and sink speed, so the pattern speeds up. -// Ice Man has no hit reaction. Tier knobs (specs/ice_man.yaml): hp, slasher/contact damage, slasher speed +// Ice Man has no hit reaction. Tier knobs (specs/ice_man.spec.js): hp, slasher/contact damage, slasher speed // scale, hover scale, stance windup. (function (g) { var B = g.BB, BB = B, MM = B.MM, RM = MM.RobotMaster, fx = MM.fx; diff --git a/environments/games/web/games/megaman_remake/data/weapons.js b/environments/games/web/games/megaman_remake/data/weapons.js index 395d21afc14f509609ca46c4d0ee0a610d22f986..17ce2be7fa23933359c0fc49018ae10dc4cef93e 100644 --- a/environments/games/web/games/megaman_remake/data/weapons.js +++ b/environments/games/web/games/megaman_remake/data/weapons.js @@ -4,7 +4,7 @@ // $C994 boss post-hit invulnerability frames per mode // $FEBB damage a boss projectile deals per mode; boss body contact is a flat 4 (player_contact_service) // $A8DE weapon energy units per shot ($A8D7 shots-per-charge is 1 for every weapon) -// Every Robot Master is listed so scenes 4-6 plug in later; `built` marks what this round implements. +// The built flag identifies available weapons. (function (g) { var MM = g.BB.MM; MM.WEAPON_ORDER = ['P', 'C', 'I', 'B', 'F', 'E', 'G', 'M']; diff --git a/environments/games/web/games/megaman_remake/index.html b/environments/games/web/games/megaman_remake/index.html index 220cb25b8893849190d86ff66eeb176fd6857200..e97c340e09c92d9a0a077f6451a263670d261c36 100644 --- a/environments/games/web/games/megaman_remake/index.html +++ b/environments/games/web/games/megaman_remake/index.html @@ -7,7 +7,7 @@

        Controls · CONTROLS

        • AD / arrow keys to move; Space / Z to jump; hold for more height
        • J / X / left mouse button to fire (one shot per press, up to three Arm Gun shots on screen)
        • Q / E switch weapons (replaces the original pause menu: switching recalls the active special shot; fired Arm Gun shots continue moving but no longer deal damage)
        • P/Esc to pause; then Q to go back; after a result, press R to retry. Scripted Demo runs reference script BB.GAME.scripted
        • Sliding was added in Mega Man 3 and charge shots in Mega Man 4; neither is available here

        Weapon × boss damage table (NES units)

        Skill list

          Replay and step playback
          One packet every 200 ms; replays are deterministic with the same seed, options, and rules
          -
          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.
          +
          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.
          diff --git a/environments/games/web/games/minecraft_remake/index.html b/environments/games/web/games/minecraft_remake/index.html index f78c356a461522ebe8fb26f4a1bf973fdb0a0b60..acdac3624cfe336901e15d24f9a2cbb531efe522 100644 --- a/environments/games/web/games/minecraft_remake/index.html +++ b/environments/games/web/games/minecraft_remake/index.html @@ -79,7 +79,7 @@ -
          +
          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.
          diff --git a/environments/games/web/games/minecraft_remake/play.js b/environments/games/web/games/minecraft_remake/play.js index 8bcdf59c7b41c77130a8fae1fed0c3c39c7ebd09..72e9a13984988b33c006aec21c22d46aa042ef33 100644 --- a/environments/games/web/games/minecraft_remake/play.js +++ b/environments/games/web/games/minecraft_remake/play.js @@ -218,7 +218,7 @@ // Show the terminal frame at once: frames play back ~0.2 s behind the simulation, so the result overlay would // otherwise sit on a frame where the boss still has health left. if (frames.length) { view.src = frames[frames.length - 1]; frames = []; } - window.__bbOutcome = state.outcome; // read by web/tools/bench_media.py ui + window.__bbOutcome = state.outcome; const label = {win: 'Victory', loss: 'Failure', timeout: 'Time up'}[state.outcome] || state.outcome; overlay(label + ' · ' + state.t.toFixed(2) + ' seconds'); if (mode === 'replay' && replayExpect) verifyReplay(); @@ -328,7 +328,7 @@ replayExpect = null; } - // ------------------------------------------------------------------ harness hook (web/tools/bench_media.py ui) + // ------------------------------------------------------------------ Browser automation interface window.bossbenchUI = { demo: (caseId, tier) => demo(caseId, tier), start: (caseId, tier) => newSession(caseId, 'play', tier).then(() => { startLoop(); return true; }), diff --git a/environments/games/web/games/nfsmw_remake/compact_actions.json b/environments/games/web/games/nfsmw_remake/compact_actions.json index 248e057098e2b89933c8ac97b286c905e54fb338..3dfceed74e5a159168bef656ae8271180700cf4b 100644 --- a/environments/games/web/games/nfsmw_remake/compact_actions.json +++ b/environments/games/web/games/nfsmw_remake/compact_actions.json @@ -2,7 +2,7 @@ "schema": "bossbench/compact-actions@1", "game": "nfsmw_remake", "version": "nfsmw-compact@1", - "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.", + "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.", "heads": [ { "name": "pedal", diff --git a/environments/games/web/games/nfsmw_remake/index.html b/environments/games/web/games/nfsmw_remake/index.html index 521187bc57cc47a4e32109e72d3d0d01aaf2cf6f..b75619531efe73e043ff789f1da90e7112473197 100644 --- a/environments/games/web/games/nfsmw_remake/index.html +++ b/environments/games/web/games/nfsmw_remake/index.html @@ -1,7 +1,7 @@ Need for Speed: Most Wanted · Street Challenges(nfsmw-arena@2)

          Need for Speed: Most Wanted · Street Challenges

          2005 original rules, independently recreated from CC0 decompilation · Native 60 Hz · Third-person WebGL · Original procedural city

          Back to Game Lobby
          -
          Select an event, then start the challenge

          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.

          +
          Select an event, then start the challenge

          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.

          -
          +
          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.
          diff --git a/environments/games/web/games/nfsmw_remake/modes_knockout.js b/environments/games/web/games/nfsmw_remake/modes_knockout.js index 9df70caef60df4591c69ff873679bef1d6cbec5c..d035954274a5042f62631a0c9aabc80b0c77e9ba 100644 --- a/environments/games/web/games/nfsmw_remake/modes_knockout.js +++ b/environments/games/web/games/nfsmw_remake/modes_knockout.js @@ -47,7 +47,7 @@ }, hud(g) { const alive = g.rivals.filter(r => !r.out); const place = 1 + alive.filter(r => r.prog > g.prog).length; return { label: 'Lap Knockout', detail: `Lap ${Math.min(g.lap + 1, g.laps)} / ${g.laps} · Place ${place} / ${alive.length + 1} · Last-place rival needs ${M.MODES.knockout.health(g)[0].toFixed(0)} m` }; }, // draw.js calls hud unbound: no `this` // Reference: a tighter line, and slow motion (J, the public Speedbreaker key: +2 g of downforce) only while it would brake, - // for a corner or for a car ahead. Seeds 1-32: normal 22 -> 32, hard 24 -> 32. + // for a corner or for a car ahead. scripted(g) { const opt = { margin: 0.96 }, pk = M.ctl.drive(g, opt); if (g.pre <= 0) { const why = M.ctl.planDrive(g, opt).why, want = why === 'speed' || why === 'contact'; if (want !== !!g.sb && (g.sb || g.sbMeter > 0.15) && pk.holds[0].length < 4) pk.holds[0].push('J'); } diff --git a/environments/games/web/games/nfsmw_remake/modes_pursuit.js b/environments/games/web/games/nfsmw_remake/modes_pursuit.js index e1d38d2faded47f19b21d02732dae6165181a1c9..e89d566ff7575de56d414bcf2d3a67df2aaa3e86 100644 --- a/environments/games/web/games/nfsmw_remake/modes_pursuit.js +++ b/environments/games/web/games/nfsmw_remake/modes_pursuit.js @@ -19,7 +19,7 @@ if (!g.stage) { const c = M.spawnCop(g, g.s - 85, 2, 1); c.slot = 0; c.v = 34; } else g.events.push({ type: 'heat_up', stage: g.stage }); }; - // ---------------- Reference controllers for these two events (2026-11-11 recalibration). Only these two events call them; the shared + // ---------------- Reference controllers for these two events. Only these two events call them; the shared // planDrive / drive in scripted.js are untouched. Read decided state only (poses, timers, the episode seed), never the live RNG: the // champion's look-ahead rolls copies forward in a fixed independent scenario. Both keep a little memory per game object (WeakMap); a // repeated call on the same state returns the same packet. diff --git a/environments/games/web/games/quake2_remake/LICENSE.fdlibm b/environments/games/web/games/quake2_remake/LICENSE.fdlibm new file mode 100644 index 0000000000000000000000000000000000000000..b0247953f8084557757ed42eef788d75fc879150 --- /dev/null +++ b/environments/games/web/games/quake2_remake/LICENSE.fdlibm @@ -0,0 +1,6 @@ +Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. + +Developed at SunSoft, a Sun Microsystems, Inc. business. +Permission to use, copy, modify, and distribute this +software is freely granted, provided that this notice +is preserved. diff --git a/environments/games/web/games/quake2_remake/compact_actions.json b/environments/games/web/games/quake2_remake/compact_actions.json index a752763b48276bdd912007f6e867920eaedd8354..074a8adeb485f957c7cc3bb7b72038d98b0f2162 100644 --- a/environments/games/web/games/quake2_remake/compact_actions.json +++ b/environments/games/web/games/quake2_remake/compact_actions.json @@ -2,7 +2,7 @@ "schema": "bossbench/compact-actions@1", "game": "quake2_remake", "version": "quake2-compact@1", - "note": "ViZDoom-style button set: 8-way movement with run held (Shift, held in 100% of reference packets), yaw by fixed angles, a small pitch head (freelook), and one head for fire / late fire / jump / next weapon (never needed together). Late fire presses J only in sub-steps 5-6, the way the reference controller starts every burst. Previous weapon (R), crouch (L) and keyboard turn (Q/E) are left out: the weapon order cycles, so next alone reaches every weapon. One action = one 200 ms packet. Mouse: 1 count = m_yaw 0.022 x sensitivity 3 = 0.066 deg (same for pitch), so dx 152 = 10 deg; dy > 0 looks down. Sizes 9 x 7 x 3 x 5 = 945.", + "note": "A 200 ms packet combines eight-way running, yaw, pitch, and one attack, jump, or weapon action. Late fire starts in sub-step five. One mouse count is 0.066 degrees. Positive dy looks down.", "heads": [ { "name": "move", diff --git a/environments/games/web/games/quake2_remake/index.html b/environments/games/web/games/quake2_remake/index.html index a17d056d7b6e1a00d42c4bd50075dd21ba58ed32..26e20e4be9eda15ec260adaea45b0a43f25007c8 100644 --- a/environments/games/web/games/quake2_remake/index.html +++ b/environments/games/web/games/quake2_remake/index.html @@ -1,7 +1,7 @@ Quake II · Boss Arena(q2-arena@4)

          Quake II · Boss Arena

          1997 original rules, independently recreated from id Software GPL source · 60 Hz simulation (10 Hz server frames) · First-person WebGL

          Back to Game Lobby
          -
          Select a boss to start

          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.

          +
          Select a boss to start

          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.

          -
          +
          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.
          diff --git a/environments/games/web/games/quake2_remake/q2core.js b/environments/games/web/games/quake2_remake/q2core.js index f39a7c09ac900861aa7e0cd8b34076dfc4c8a858..193e437d5538a98d9ff26e584f52bdb244d34ad5 100644 --- a/environments/games/web/games/quake2_remake/q2core.js +++ b/environments/games/web/games/quake2_remake/q2core.js @@ -40,10 +40,8 @@ Q.drawRand = (g, n) => { for (let i = 0; i < n; i++) Q.rand(g); }; // RNG draws of cosmetic effects (debris/gibs) // ---------------- vectors (vec3_t as [x, y, z]) ---------------- - // Deterministic trigonometry. Math.sin / Math.cos / Math.atan2 can differ in the last bit between V8 builds - // (Node vs Chrome, measured in this project), and the simulation must replay bit-identically in Node - // (calibration, page example recordings) and in the browser (harness, play page). These are fdlibm's kernels - // (k_sin.c, k_cos.c, s_atan.c, e_atan2.c) evaluated with + - * / only, Cody-Waite range reduction for |x| < 2^20. + // Deterministic trigonometry adapted from fdlibm. See LICENSE.fdlibm. + // The kernels use arithmetic operations and Cody-Waite range reduction for |x| < 2^20. const PIO2_1 = 1.57079632673412561417e+00, PIO2_1T = 6.07710050650619224932e-11, INVPIO2 = 6.36619772367581382433e-01; const S1 = -1.66666666666666324348e-01, S2 = 8.33333333332248946124e-03, S3 = -1.98412698298579493134e-04, S4 = 2.75573137070700676789e-06, S5 = -2.50507602534068634195e-08, S6 = 1.58969099521155010221e-10; diff --git a/environments/games/web/games/quake2_remake/scripted.js b/environments/games/web/games/quake2_remake/scripted.js index 0c1eeeae75349a99dc7a2dde5e32b6d82914e73b..e66569c2bbe3f2eef703342f23edd2361c71746a 100644 --- a/environments/games/web/games/quake2_remake/scripted.js +++ b/environments/games/web/games/quake2_remake/scripted.js @@ -15,10 +15,7 @@ const LOOK = Math.round(1.4 * M.hz); // look-ahead per candidate move: 1.4 s (14 ticks at @2) M.LOOK_K = 1; // blinded futures per candidate move (see M.scripted) - // The copies get their own rand() state, so the controller plans with the rules but without knowing the live dice - // (bullet spread, the boss's next attack choice): it cannot dodge by reading the future RNG. Since q2-arena@3 the - // copy's state is a function of the tick only, not of the live holdrand: with it derived from the live value the - // packet still depended on the real dice (leak probe: decision invariance 0.63-0.75, tools/leak60.js). + // Seed planning copies from the tick so they cannot read future draws from the live simulation. function simulate(g, keys, mouseTicks, ticks, k = 0) { const h = M.copyGame(g), ks = new Set(keys), none = new Set(); let x = Math.imul((g.t + 0x9e3779b9 + Math.imul(k, 0x632be5ab)) >>> 0, 0x85ebca6b) >>> 0; x ^= x >>> 13; x = Math.imul(x, 0xc2b2ae35) >>> 0; x ^= x >>> 16; diff --git a/environments/games/web/games/sekiro_remake/app3d.js b/environments/games/web/games/sekiro_remake/app3d.js index c64424a0a24d601db0647f4097e14145a10863e2..e90265f4395c5d75549b1d6b20d7bb66f3ca2eb8 100644 --- a/environments/games/web/games/sekiro_remake/app3d.js +++ b/environments/games/web/games/sekiro_remake/app3d.js @@ -42,7 +42,6 @@ $('#pause').onclick=()=>{if(session.game.outcome)return;running=!running;clear();if(running)canvas.focus();draw();}; $('#step').onclick=()=>{running=false;if(replay)replayTick();else session.tick();draw();}; 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 · Starting playback');draw();} - $('#sample').onclick=()=>{try{const data=M.example?.[$('#case').value];if(!data)throw Error('No built-in replay for this challenge yet. Try Verify Script first.');openReplay(data);}catch(error){status(error.message);}}; function replayTick(){if(replayIndex{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');}; $('#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='';}; diff --git a/environments/games/web/games/sekiro_remake/index.html b/environments/games/web/games/sekiro_remake/index.html index 85ae9c8faee4988b98952044c86279378d3361f5..31c3b216a06edf67d280da4f4723a71a05c81cfe 100644 --- a/environments/games/web/games/sekiro_remake/index.html +++ b/environments/games/web/games/sekiro_remake/index.html @@ -1,7 +1,7 @@ Sekiro · Six Bosses
          Sekiro · Shadows Die Twice

          Sekiro · Six Bosses

          Face six foes: a bow-and-blade swordsman, a deceptive guardian ape, an illusion-wielding shinobi, a sword-and-spear master, a mounted general, and a flame behemoth. Read their attacks and break their posture.

          Back to Game Lobby ↗
          -
          Are You Ready?Click Start Challenge
          +
          Are You Ready?Click Start Challenge

          Verify Script reads game state to check the mechanics. Replays save real inputs and simulate the full battle again.

          -
          +
          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.
          diff --git a/environments/games/web/games/soulknight_remake/game.js b/environments/games/web/games/soulknight_remake/game.js index 9a4886fbbce8c567f8eef6a88d964ca3d90e4e0b..610d9ee050ea7c8c2fe69b8c690a82818d23eea4 100644 --- a/environments/games/web/games/soulknight_remake/game.js +++ b/environments/games/web/games/soulknight_remake/game.js @@ -1568,5 +1568,5 @@ mem.last = best.i; return { holds: best.holds.map(h => h.slice(0, 4)), mouse }; }; - M.oracle = M.scripted; // web/tools/native_validate.js still calls oracle + M.oracle = M.scripted; })(typeof window === 'undefined' ? globalThis : window); diff --git a/environments/games/web/games/soulknight_remake/index.html b/environments/games/web/games/soulknight_remake/index.html index 832148807c77131b2f530641e427563ff9575f6b..ae0b6cbca50ec4bf5678e873d930ff817f46ef9e 100644 --- a/environments/games/web/games/soulknight_remake/index.html +++ b/environments/games/web/games/soulknight_remake/index.html @@ -1,7 +1,7 @@ Soul Knight: Dungeon Bosses

          Soul Knight: Dungeon Bosses

          Six bosses · Armored Gunner · knight-arena@6 · 60 Hz · Easy/Normal/Hard · Recording and Replay

          Back to Game Lobby
          -
          Select a boss to start

          The gunner has 6 health, 5 armor, and 180 energy. Armor regenerates by 1 per second after 3 seconds without damage. Bosses enrage at half health. The blade can cut ordinary bullets, turrets, star turrets, and vortex shots, but not shockwaves, meteors, laser orbs, explosive shots, or beams. Hold the left mouse button and drag to aim manually, or double-click the screen to lock the pointer for free aim (Esc unlocks it). When the mouse is idle, auto-aim targets a visible boss. Replays save inputs and the seed for deterministic verification. The scripted demo reads internal state and emits only valid keyboard and mouse actions; it does not start RL training.

          +
          Select a boss to start

          The gunner has 6 health, 5 armor, and 180 energy. Armor regenerates by 1 per second after 3 seconds without damage. Bosses enrage at half health. The blade can cut ordinary bullets, turrets, star turrets, and vortex shots, but not shockwaves, meteors, laser orbs, explosive shots, or beams. Hold the left mouse button and drag to aim manually, or double-click the screen to lock the pointer for free aim (Esc unlocks it). When the mouse is idle, auto-aim targets a visible boss. Replays save inputs and the seed for deterministic verification. The scripted demo reads internal state and emits only valid keyboard and mouse actions; it does not start RL training.

          -
          +
          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.
          diff --git a/environments/games/web/games/terraria_remake/index.html b/environments/games/web/games/terraria_remake/index.html index d740d797bdc2904dc6d9b87869fb0bcc9834db37..711296b1af576cd59ba3dae9b7e17c15906a3a23 100644 --- a/environments/games/web/games/terraria_remake/index.html +++ b/environments/games/web/games/terraria_remake/index.html @@ -54,7 +54,7 @@ footer{margin-top:20px;color:var(--muted);font-size:12px}footer a{color:#d9cf9e}

          Recording and Replay

          After a match, save its seed, difficulty, and complete keyboard and mouse input.
          -
          Mechanics reference Terraria; visuals and arena are original adaptations.
          +
          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.
          diff --git a/environments/games/web/games/tombraider_remake/compact_actions.json b/environments/games/web/games/tombraider_remake/compact_actions.json index a206fe3097c5bed225f98282c5f7354e84b6459b..e3fc0f425694b3dc083686115c2961d4c860afa3 100644 --- a/environments/games/web/games/tombraider_remake/compact_actions.json +++ b/environments/games/web/games/tombraider_remake/compact_actions.json @@ -2,7 +2,7 @@ "schema": "bossbench/compact-actions@1", "game": "tombraider_remake", "version": "tombraider-compact@2", - "note": "ViZDoom-style button set for the 1996 tank controls. One action = one 200 ms packet (12 ticks at 60 Hz, 6 sub-steps of 2 ticks). Heads: move (run / back hop / sidestep); turn (A/D tank turn for the whole packet or for a run of sub-steps: 2-5, 1-4, 1-2, 1; or a fixed mouse angle); act (the trigger and the one-off actions in one head: fire held, fire held + a jump starting at sub-step 1..6, one shot, roll, medipack). Fire is held in every jump option because the reference play never stops firing to jump; 'none' is the only option with neither. A jump starts on the sub-step Space goes down (the explorer must be standing or running then) and its direction is read from W/S/A/D 6 ticks later, at the end of the crouch, as in the original: with move=forward a running or forward jump, move=back a back jump, turn=left/right a side jump, nothing a jump straight up. So the jump options press Space in one sub-step only; the nearest-option snap then maps any run of Space to the sub-step it starts on (ties go to the lower index, the earlier start). Turning: A/D held a whole packet turns about 36 degrees standing (180 degrees/s); the partial options hold it over the named sub-steps (each sub-step about 6 degrees plus the turn's run-out). Mouse: 1 count = 0.1 degree (18.2 binary angle units), dx 100 = 10 degrees over the packet, never faster than the keyboard: 36 degrees per packet standing or running, 24 in a back hop, 6 in the air, none while sidestepping, crouching, landing or rolling. Left out on purpose: K draw/holster (the pistols start drawn and holstering gains nothing here), Shift walk (no ledges), mouse dy (camera pitch only; the camera frames the boss by itself), LMB/RMB (duplicates of J/K).", + "note": "A 200 ms packet combines movement, turning, and one action. Jump options press Space at the named sub-step while firing. The game reads movement for jump direction at the end of the crouch. One mouse count turns the view 0.1 degree, subject to the current movement state.", "heads": [ { "name": "move", diff --git a/environments/games/web/games/tombraider_remake/fleshkin.js b/environments/games/web/games/tombraider_remake/fleshkin.js index 9c35947eeef27e46d6f4a56fec94c3714212cdf9..8680624453c8d8d69cdb702123e092c9d236cf1a 100644 --- a/environments/games/web/games/tombraider_remake/fleshkin.js +++ b/environments/games/web/games/tombraider_remake/fleshkin.js @@ -163,7 +163,7 @@ spawn(g, x, z, rot) { const k = g.tierScale, half = Math.round(T.tierValue(g.d, g.tiers, HP2)); return { kind: 'winged', x, y: 0, z, rot, hp: half * 2, maxHp: half * 2, half, stage: 1, state: 'stop', goal: 'stop', req: '', stateT: 0, timer: 0, flyMode: false, attacks: 0, faints: 0, faintT: 0, - aimLen: Math.max(T.n(4), Math.round(ANIM.aim.len * k.pause)), stopLen: Math.max(T.n(2), Math.round(ANIM.stop.len * k.pause)), fireScale: Math.max(1, k.pause) }; // fire periods never shorter than the source: see round F/H (1-HP fixture: x0.5 periods with x1.5 damage cost ~19000 HP per hard fight) + aimLen: Math.max(T.n(4), Math.round(ANIM.aim.len * k.pause)), stopLen: Math.max(T.n(2), Math.round(ANIM.stop.len * k.pause)), fireScale: Math.max(1, k.pause) }; // fire periods never shorter than the source }, // Telegraphs (tr1-arena@3): which damaging move is winding up or live, for the renderer, the HUD and the measurement scripts. A pure function // of the boss state; nothing in the simulation reads it. windup = ticks between the move's start and its first damaging tick (the source's). diff --git a/environments/games/web/games/tombraider_remake/game.js b/environments/games/web/games/tombraider_remake/game.js index 6b4a7c11e1a7beb6a94194af3ac347083ba02db4..cf4d79c0883d29d2104141dfd2ffb069363f5f03 100644 --- a/environments/games/web/games/tombraider_remake/game.js +++ b/environments/games/web/games/tombraider_remake/game.js @@ -56,7 +56,6 @@ this.id = id; this.key = def.arena; this.d = d; this.tier = tierOf(d); this.tiers = TIERS; this.tierScale = tierScale(d); this.t = 0; this.outcome = null; this.events = []; this.fx = []; this.fxSeq = 0; this.missiles = []; this.rng = (Math.imul((seed >>> 0) + 1, 2654435761) ^ 0x9E3779B9) >>> 0 || 1; - // Calibration fixture (a fatal blow leaves 1 HP). Reachable only by constructing a Session directly: there is deliberately no Module.validateOptions, so make_policy_env rejects it. this.oneHpFixture = !!(options && options.oneHpFixture); this.fixtureSaves = 0; this.heldKeys = []; this.lara = T.spawnLara(a.lara[0], a.lara[1], a.lara[2]); const [kind, bx, bz, brot] = a.boss; diff --git a/environments/games/web/games/tombraider_remake/index.html b/environments/games/web/games/tombraider_remake/index.html index 5ae7f191316a18e02d0a42d27dcad0f9e9fb56f8..903b5ea47568c3dad2bae945c5288010a2dea1a1 100644 --- a/environments/games/web/games/tombraider_remake/index.html +++ b/environments/games/web/games/tombraider_remake/index.html @@ -1,7 +1,7 @@ Tomb Raider 1: Ruins Bosses (tr1-arena@3)

          Tomb Raider 1: Ruins Bosses

          1996 mechanics (independently implemented using read-only source research) · Native 60 Hz · Third-person WebGL · Original procedural art

          Back to Game Lobby
          -
          Select a boss to start

          Replays save inputs and the seed for deterministic final-state verification. The scripted demo uses internal state and is for verification only.

          +
          Select a boss to start

          Replays save inputs and the seed for deterministic final-state verification. The scripted demo uses internal state and is for verification only.

          -
          +
          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.
          diff --git a/environments/games/web/games/touhou_remake/game.js b/environments/games/web/games/touhou_remake/game.js index af52df6f6f31a7e5fd55d4c047053367654b75ca..46b7fef39dd684fd17e883c5592d91c4aa444d07 100644 --- a/environments/games/web/games/touhou_remake/game.js +++ b/environments/games/web/games/touhou_remake/game.js @@ -2,15 +2,7 @@ * (stage 5) and Remilia Scarlet (stage 6), rules scarlet-practice@8. * Player/bomb/item/rank/spell-card/time-stop rules follow the CC0 GensokyoClub/th06 decompilation (v1.02h); spell geometry is * authored from community descriptions. - * @4 (2026-11-02): the arena is the whole 854x480 frame (16:9) instead of the original 384x448 lane, three public tiers, - * Sakuya Izayoi, Q/E shot-type switching at any time. Object rules (speeds, hitboxes, damage, bombs) keep original pixel units. - * @5 (2026-11-03): touching the boss's body kills the player (C17; @1-@4 had read the decompilation the wrong way round). - * @6 (2026-11-05): Hong Meiling with ordinary enemies (fairies, C33); homing amulets and Fantasy Seal orbs steer to the lowest - * interactable enemy (C34) - with no fairy that is the boss, so the three earlier cases replay bit-identically. - * @7 (2026-11-05): Patchouli Knowledge (Reimu A card list fixed at reset, C40; bullets from the lasers, C42; optional laser sweep `va`); - * health() no longer counts a finished attack twice during the transition (C44, reporting only). - * @8 (2026-11-05): Remilia Scarlet (C45-C48): per-card score base, untouchable rules read through `sub`, the Func7 laser web, optional laser - * colour `col`; attacks without those fields behave as before. */ + * The arena uses the full frame. Movement, projectiles, and collisions use the original pixel units. */ (function (root) { 'use strict'; // Local bindings of the builtins: under Node's vm loader every global lookup goes through the sandbox interceptor (30x slower @@ -70,7 +62,7 @@ const RANK = [[16, 12, 20], [16, 10, 32], [16, 10, 32], [16, 10, 32]]; // rank, min, max (S11) const EXTENDS = [10000000, 20000000, 40000000, 60000000]; const ITEM = {POWER: 0, POINT: 1, BIG: 2, BOMB: 3, FULL: 4, LIFE: 5, STAR: 6}; - // Attack tables. hp/time are the C16 calibration (approximation) before the tier multipliers; names are neutral display names (the originals are in + // Base HP and duration before tier scaling. The labels identify the attacks in this environment. const PHASES = { r_non1: {spell: false, hp: 9000, time: 30, name: 'Non-spell pattern 1', en: 'Non-spell 1'}, r_bird: {spell: true, hp: 2600, time: 40, name: 'Alternating Sweep', en: 'Alternating Sweep', easyTimeoutOnly: true}, @@ -1513,5 +1505,5 @@ } return holds(best.k); }; - M.oracle = M.scripted; // legacy name used by web/tools/native_validate.js + M.oracle = M.scripted; })(typeof window === 'undefined' ? globalThis : window); diff --git a/environments/games/web/games/touhou_remake/index.html b/environments/games/web/games/touhou_remake/index.html index 2b77f06faaa1efb86cfa4a0e012786d6f9e30ece..3d4a87b07209ec076eea03cbc1887bc845192384 100644 --- a/environments/games/web/games/touhou_remake/index.html +++ b/environments/games/web/games/touhou_remake/index.html @@ -12,7 +12,7 @@ - + Lobby @@ -27,5 +27,6 @@
          +

          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.

          diff --git a/environments/games/web/games/zelda_oot_remake/app3d.js b/environments/games/web/games/zelda_oot_remake/app3d.js index ca91759825ce20aab747a86418691d390a45df53..0e35363ebfc08836343c42112f3c008178973f81 100644 --- a/environments/games/web/games/zelda_oot_remake/app3d.js +++ b/environments/games/web/games/zelda_oot_remake/app3d.js @@ -35,7 +35,6 @@ $('#pause').onclick=()=>{if(session.game.outcome)return;running=!running;clear();if(running)canvas.focus();draw();}; $('#step').onclick=()=>{running=false;if(replay)replayTick();else session.tick();draw();}; 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; starting playback.');draw();} - $('#sample').onclick=()=>{try{const data=M.example?.[$('#case').value];if(!data)throw Error('No built-in replay for this scene; run script verification first.');openReplay(data);}catch(error){status(error.message);}}; function replayTick(){if(replayIndex{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');}; $('#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='';}; diff --git a/environments/games/web/games/zelda_oot_remake/bosses/morpha.js b/environments/games/web/games/zelda_oot_remake/bosses/morpha.js index 16819f900c742a6bd0f886f13edac037e111f435..598ca742c0d761c0ef67ed7f4c98fa797b2ff5f0 100644 --- a/environments/games/web/games/zelda_oot_remake/bosses/morpha.js +++ b/environments/games/web/games/zelda_oot_remake/bosses/morpha.js @@ -11,7 +11,7 @@ hookStun:30,swordStun:25,coreInv:10,knock:15,knockDecay:0,coreR:24,height:280,reach:360,tentR:40,grabR:120,curlGrab:90,hookRange:520,hookR:34,landY:10,poolY:-60, climb:[15,10],segs:40,swingJitter:12,arena:520}; const TUNE={ - hp:[20,26,120,400], // BossBench: tier windows (T17); source 20 (M1). Seeds 1-16: easy 22 -> 19-20 s, 26 -> 21-24 s; normal 110 -> 44-76 s, 120 -> 46-81 s; hard 320 -> 125-209 s, 400 -> 158-254 s + hp:[20,26,120,400], dmg:[16,16,16,16], // tentacle and nucleus contact, source 0x10 = one heart in every tier: hard 400 with 20 lost 3 of 16 to the second tentacle's lashes squeeze:[1,1,1,2], // per 8 frames while held (source 1) swing:[50,50,45,40] // sway before the lash (source 50) diff --git a/environments/games/web/games/zelda_oot_remake/bosses/volvagia.js b/environments/games/web/games/zelda_oot_remake/bosses/volvagia.js index 44abf452064dab788a32e0666cdde47bb3e32348..0665e4dd7751c4a237f65431437481ff7cb7c9c7 100644 --- a/environments/games/web/games/zelda_oot_remake/bosses/volvagia.js +++ b/environments/games/web/games/zelda_oot_remake/bosses/volvagia.js @@ -11,7 +11,7 @@ const idleTime=(hp,mx)=>{const k=hp/mx*24;return k>=24?50:k>=18?40:k>=12?40:k>=6?30:20;}; const fakes=(hp,mx)=>{const k=hp/mx*24;return k>=18?0:k>=12?1:k>=6?2:3;}; const TUNE={ - hp:[24,32,64,190], // BossBench: tier windows, source 24 at d = 0 (T13); easy 20 ended in 15-16 s, 28 in 17-19 s, 32 in 23-26 s (seeds 1-16) + hp:[24,32,64,190], hammer:[2,2,2,2], // source (V4) touch:[32,32,36,40], // hole-phase body and claw (source 0x20) fly:[16,16,20,24], // flying body and breath (source 0x10) diff --git a/environments/games/web/games/zelda_oot_remake/index.html b/environments/games/web/games/zelda_oot_remake/index.html index 9c2180fdaed1b4fdc45c7e23303a546284549176..df90953e30101dc2ea08bf9936424137baa1630d 100644 --- a/environments/games/web/games/zelda_oot_remake/index.html +++ b/environments/games/web/games/zelda_oot_remake/index.html @@ -1,7 +1,7 @@ Ancient Sword Legend: Boss Trials
          N64 · 1998 · Boss Trials

          Ancient Sword Legend: Boss Trials

          Third-person view, Z targeting, shield, and sword: each fight starts with one item. Mechanics were inferred from a public decompilation as read-only facts; characters, bosses, and arenas use original procedural art.

          Back to Game Lobby ↗
          -
          Are You Ready?ClickStart Challenge
          +
          Are You Ready?ClickStart Challenge

          The scripted demo reads internal state only to verify that each fight can be completed. Replays save actual inputs for deterministic full-battle and final-state verification.

          -
          +
          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.
          diff --git a/environments/games/web/index.html b/environments/games/web/index.html index 43c1a9cb7e99e813acaabde0820c346c9fffafbe..c55f5f3a0dd2e68b3d50e35c010e3603f4ca4c64 100644 --- a/environments/games/web/index.html +++ b/environments/games/web/index.html @@ -1 +1,2 @@ -GameDojo Games

          GameDojo: 20 games / 120 scenes

          Serve this directory with python -m http.server 8765. Minecraft requires the Python play server; see README.

          \ No newline at end of file +GameDojo Games

          GameDojo: 20 games / 120 scenes

          Minecraft requires the local Python play server on port 8765.

          +