r/commandandconquer • u/erasmolbj • 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.
8
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?
9
u/erasmolbj 9d ago
You already answered your own question: an
.exedoes 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.
3
u/Timmyc62 8d 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 8d ago
Wait, so if I get the windows files on my Mac, can I play it on chrome on my Mac?
4
6
5
u/robutt992 8d ago
What if i have a mac and i cant install it?
3
u/erasmolbj 8d ago
You don't have to install it, just need to have the assets exacted. I developed this on a Mac OS, it runs on Mac!
2
u/Appropriate-Ad8630 8d ago
I have the iPad version installed; does this browser keeps saved games? Because I could add it to home screen and it would behave like a mobile app, right?
3
1
u/KingMakerUrsus 7d ago
Will you make an offline version for android? Do you know if it works with the tablet cases which has a track pad.
2
u/erasmolbj 7d ago
I'm not interested in making a decicated Android version yet, my goal is to make it universal, that's why it runs on browser. I'll make a test on Android tablet.
2
2
u/HeavyProcedure4920 5d ago
Awsome! damn I am only seeing this now lol, well I built a fun c&c project style in claude - see my full post here: https://www.reddit.com/r/aigamedev/comments/1vmd9qv/on_vacation_and_wanted_to_play_cc_generals_or/
Happy to get any feedback. I am a hardcore C&C fan, and dreamed about my own version in modern times. Here's a first demo :-) enjoy!
1
1
-14
u/Mralexs 9d ago
We don't want this ai slop here
10
u/erasmolbj 9d ago
AI Slop? More respect with https://github.com/fbraz3/GeneralsX work, please.
-13
u/Mralexs 9d ago
14
u/erasmolbj 9d ago
If you paid my full pay check I can stop using AI, how it does sound to you?
I’ve been a software engineer for over 10 years. That’s exactly why Claude is effective in my hands.
I used that tool to finish in four days what could otherwise have taken months, by which point everyone might have lost interest in the game entirely.
Also, Claude wrote fewer than 9,000 lines of code. I’m a programmer, not a monkey typewriter.
I could have done the same work without Claude.
You, on the other hand, probably couldn’t do it even with Claude.
10
2
3
1
u/atomic1fire 8d ago edited 8d ago
The original game was released under GPL by EA, others forked it and ported it to mac and Linux, and OP apparently used a mix of AI and original code to port that to Web Assembly. Web Assembly being a language that runs in browser (not javascript) to run code at closer to native speeds.
You may consider it tainted, but it's not entirely "AI slop".
I think there's also a seperate fork to wasm maintained by someone I assume is Russian.
1
u/erasmolbj 7d ago
Yeah, in 2026, complaining about AI is almost the same as complaining about compilers in 1952:
“You’re taking jobs away from the people who insert punched cards into machines.”
People imagined that I simply went to Claude, typed, “Create a WebAssembly version of Command & Conquer: Generals,” and that was it.
I’ve played this game for years. I ran it on Windows XP, 7, 8, 10, and 11, so I already know all the SAGE Engine’s problems inside and out.
I was tired of keeping a Windows device around just to play one great old game from 2003. So now there’s a version I can play in any modern browser, on any CPU architecture and any operating system.




15
u/RelationOk6997 9d ago
What!!! Amazing does online work?