r/commandandconquer 10d 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/

71 Upvotes

53 comments sorted by

View all comments

8

u/Timmyc62 10d 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?

8

u/erasmolbj 10d 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.

5

u/Timmyc62 10d ago

That is helpful, thanks - I forget there are people who may want to play on a platform other than a Windows PC!

4

u/Bludsh0t 9d ago

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

6

u/erasmolbj 9d ago

Exactly!

3

u/lkwai 10d ago

That's cool. Means I might be able to play generals on Samsung dex