Heroes II Demo in your browser

The Heroes of Might and Magic II demo, redistributable and shipped with the site. It is the project's standing benchmark for interpreter throughput. Heroes II Demo runs in Wine-Assembly, a Windows 98 emulator written in WebAssembly Text, so it starts in the browser with nothing to install.

Launch Heroes II Demo →

Heroes II Demo running in Wine-Assembly

About this program

Detail
Executable H2DEMOW.EXE
Format 32-bit Windows (PE)
Libraries loaded beside it MSS32.DLL, SMACKW32.DLL
Data files mounted 13
Command line /R0
Desktop group Games and players

How it runs here

The x86 code is interpreted by threaded code written in WebAssembly Text; windows, controls, menus and dialogs are the emulator's own Win32 layer, and every pixel is drawn by a software GDI in the same module. See how the program and its DLLs are loaded.

Reverse-engineering notes for this program:

Something wrong? The emulator is open source; report it on GitHub with the app name and what you clicked.

Questions

How do I play Heroes II Demo in my browser?

Open the Heroes II Demo page and click Launch. The program's files are fetched from this site and run inside the tab as WebAssembly; nothing is installed and nothing is uploaded.

What are the controls for Heroes II Demo?

The mouse does everything: left-click to select and move, right-click and hold for information. The adventure map scrolls when the pointer touches an edge.

Does Heroes II Demo work on a phone?

It loads in mobile Safari and Chrome and the desktop scales to the screen, but Heroes II Demo was made for a mouse and a keyboard, so it plays best on a desktop browser. Taps act as clicks.

Are my scores and settings saved?

Whatever Heroes II Demo writes to the Windows registry or to its INI file is kept in this browser's local storage, so it is there next time on the same device and browser. Clearing site data removes it.

Does Heroes II Demo have sound here?

The sound effects and MIDI music work: effects go to Web Audio and the music plays on a General MIDI synthesizer built into the page. The CD audio tracks of the full game are not available, as there is no game CD mounted.

Is this the real Heroes II Demo or a remake?

It is the original 32-bit Windows (PE) executable (H2DEMOW.EXE), run instruction by instruction by an x86 interpreter written in WebAssembly Text. The emulator provides the Windows API underneath it, not a rewrite of the program.

Also under "Games and players"

SkiFree · Pinball · DX-Ball · Blobby Volley · Winamp · StarCraft Demo · RollerCoaster Tycoon

All programs on the desktop · How Wine-Assembly was built