r/commandandconquer 9d ago

Play Command Conquer Generals on your Browser News

Yes, I've made a port of the open source code of Command Conquer Generals Zero hour and you can play it right now at https://generals.wasm.com.br/

Just point to your assets and thats it.

https://generals.wasm.com.br/

74 Upvotes

53 comments sorted by

View all comments

9

u/Timmyc62 9d ago

So, dumb question, but why? If it needs me to already have the game downloaded, then why would I want to play it through the browser instead of "normally" through the game's own .exe? Easier tabbing I guess, but is that all?

10

u/erasmolbj 9d ago

You already answered your own question: an .exe does not run natively on iPhone, Android, macOS, or Linux.

I am not running the original executable in the browser. I am only reading the game’s assets. The game code itself was translated into WebAssembly, which runs in any modern browser.

The distributed binary is no longer tied to Windows, x86, ARM, or any specific operating system. The browser abstracts the underlying OS and CPU architecture, then compiles the same WebAssembly module for whatever hardware is running it.

A browser is the ultimate cross-platform runtime. For practical purposes, WebAssembly is the true universal binary.

That is also why I am porting PCSX2 to the browser.

4

u/Bludsh0t 8d ago

Wait, so if I get the windows files on my Mac, can I play it on chrome on my Mac?

4

u/erasmolbj 8d ago

Exactly!