The source code for the browser port of the DOS game "Field of Miracles 2" has been published.

The source code for a browser port of the 1993 DOS game "Field of Miracles 2" has been released. The project is written in TypeScript and recreates the original game in a browser without running the old executable file.

The port's author recreated the game's behavior using the original binary data and a disassembly-based reconstruction. The project features a splash screen, player name input, eight tournament stages, a 16-sector wheel, hand-cursor letter selection, revealing letters on the scoreboard, a minigame with boxes, bargaining with Yakubovich for the prize, commercial breaks, a final ceremony, and a leaderboard.

The project's key technical feature is its "zero binaries" approach. Original resources aren't used as opaque binary files: sprites and fonts are encoded into lossless WebP and JSON manifests, while the question dictionary and highscore table are represented in JSON. Tests can reassemble resources back into the original files byte by byte, allowing for verification of the accuracy of the transfer.

The repository also includes a set of checks: unit and integration tests, build tests, a smoke test via Playwright, and a general "verify" mode. To run, simply navigate to the web directory, install dependencies via npm, and launch the dev server.

According to RozetkedDeveloper Denis Shiryaev used Claude Fable 5 to migrate the game from binary code to TypeScript. He claims the model returned the rewritten source code in just a few hours, even extracting sprites. Given the recent launch and subsequent shutdown of Fable 5, this story has become a prime example of how modern LLMs are now being used not only for generating new code but also for restoring and porting legacy software.

The TypeScript portion of the project is licensed under the MIT license, but the author specifically clarifies that this license does not apply to the recoded data from the original 1993 game.

Source: linux.org.ru

Buy reliable hosting for sites with DDoS protection, VPS VDS servers πŸ”₯ Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster