Skip to content
Claude CodegreenfieldGames2 files · +1682 −4

Build a single-file HTML remake of Super Mario Bros 1-1

Session from fable-5.1-mario-trajectory on Hugging Face by INONONO · MIT · condensed by Coders Talk

35msession
0interventions
GOAL

Create a single self-contained HTML file that faithfully recreates Super Mario Bros World 1-1, must be playable and bug-free.

  1. Prompt · +0
    Build a single-file HTML clone of Super Mario Bros 1-1 in this directory, playable and bug-free, fun.
  2. Agent did · +6m
    Wrote index.html from scratch: sprites drawn as pixel art, level data for World 1-1, game state machine, physics, block interactions, flagpole/level clear logic, and rendering pipeline.
  3. Agent did · +23m
    Set up a headless Playwright environment (installing chromium, npm packages) since no browser was available, to script automated play tests of the game.
  4. Agent did · +24m
    Ran multiple scripted play tests via Playwright/node scripts checking jump velocities, coin blocks, mushroom power-ups, fireballs, and enemy kills; tuned jump physics and fixed a bug where enemy velocity was incorrectly zeroed on collision.
  5. Fail · +30m
    Bot simulation repeatedly died falling into the same pit at x=1418, losing all lives and ending in game over across multiple pit-detection tweaks.
  6. Agent did · +31m
    Traced jump/velocity data around the pit, adjusted acceleration/skid logic and shell-kick physics, then reran tests confirming the level could be cleared with score 19100.
  7. Agent did · +32m
    Captured screenshots at various stages (fireball, flag descent, level cleared, title, big-mario stairs) to visually verify rendering, then made further data fixes for decor overlap and flagpole reset, rerunning bot tests including a small-Mario-only run that also cleared with score 17800.
  8. Agent did · +34m
    Did a final real-input run of the game, checked file size/line count, inspected existing README/docs/git state, confirming index.html was the only modified file relative to committed docs.
  9. Outcome · +35m
    Delivered a single 58KB dependency-free index.html implementing full SMB 1-1 level layout, physics, power-ups, enemies, and flagpole/clear sequence, verified via automated Playwright bot runs clearing the level with scores up to 19100.
VERDICT

Next time I'd ask upfront for automated playtesting via a headless browser bot from the start, since that's what actually caught the physics and pit-death bugs. The fix that mattered most was tracing the exact pit death at x=1418 with frame-by-frame velocity logs and adjusting the acceleration/skid code — that's what turned repeated game-overs into a clean level clear.

I tried this · 0

Discussion · 0

How Builds work