Show HN: Age of Empires II HD decompiled to C++, playable in the browser shellbe...
HN Best 200 @best
Show HN: Age of Empires II HD decompiled to C++, playable in the browser shellbear.me · 13 points · 13 comments · HN thread
TL;DR A Show HN project by shellbear that decompiles Age of Empires II HD into C++ and runs it in the browser. Visitors can play a random-map demo built from the free Conquerors trial, or drop their own AoE2 HD folder onto the page to play the full game, with files staying local. The site states it is an unofficial fan project with no game files hosted.
- The browser demo is random-map play against the computer on Yucatan, as the Aztecs or Mayans, built from the free Conquerors trial.
- Full play requires an Age of Empires II HD folder or the trial's Age2XTrial.exe, which is dropped onto the page and stays on the user's computer.
- The author says the HD version's code was about 5MB and took weeks to decompile.
- Each function is rewritten to C++, compiled with the original compiler, and its assembly output compared against the original, with Claude Code and a previously discussed tool (REA) automating much of the work.
- Most of the human effort went into testing and fixing bugs, since floats and rounding behave differently in the web build.
- The project is labeled unofficial and not affiliated with Microsoft; Age of Empires is a Microsoft trademark.
Discussion The thread mixes interest in running old games on modern systems with questions about how the port was made. Commenters ask about emulation and whether AoE2 still runs on Windows 11, and a few discuss similar decompilation projects, including a Sims 1 port and an Apple TV port of 1080 Snowboarding. The author answers questions about how much AI and human work went into it. The mood is mostly positive toward the technical feat, with a sharp side discussion about the author's README and UI text, which several readers found sounded obviously AI-written; the author accepted the criticism and promised to rewrite it.
- Impressed by the technical achievement and the decompile-and-verify approach (many): Commenters treat the port as a serious engineering result and find the byte-level assembly comparison method interesting. Some suggest that decompilation work could be parallelized across functions or improved with shared compiler pattern databases.
- Interested in similar ports of other classic games (some): Several commenters are excited about applying the same workflow to other titles, including The Sims 1 and a 1080 Snowboarding port to Apple TV, and ask how much human work those required.
- The site's AI-sounding text is off-putting (some): One commenter says the introduction reads as obviously Claude-written and hard to get past. The author agreed and said they would rewrite the copy in their own, non-native English.
- Old game versions no longer run natively on modern Windows (a few): A commenter reports that the original AoE2 disc install does not run on Windows 11 and asks about alternatives beyond emulation or old hardware, noting that emulation may not reach playable speed.
Links from the comments