Can "C" games work in web browsers?

Can "C" games work in web browsers?

If not, can websites have a built in C compiler so games play on the browser?

Attached: PNWXICvXVKWYtz_gNsYZ9ye3pJcNNi6q2XyUqHUBha0.jpg (640x480, 56K)

Also, why is there not as much browser games anymore?

that's how you get viruses OP

phones

1. No
2. Not a compiler. You can run them server-side though.
3..Mobile apps.

But how if its playing in the browser webpage?

Browser games are coming back recently with all the .io shit like agar.io and slither.io

Also you completely misunderstand how C works if you want a browser to also be a compiler

Look into WebAssembly and WebGL

what is emscripten

Yes using web assembly.
Someone had a QT app running in browser.

Download the game for your OS. Play it. What’s so hard about that?

are you fucking retarded?

Why? C can be interpreted (TCC does for example).

((This))

>Also you completely misunderstand how C works if you want a browser to also be a compiler
Maybe gcc has some limits (not that I'd know) but the language itself is just a language, and has nothing barring it from being used in many contexts.

Yes, gamez written in C can run in a browser (using emscripten as soneone has already said)

They will need source modifications to work tho.

Just use Nim already, user.

Attached: nim-lang.jpg (1080x713, 124K)

That wasn't what the OP asked for user.

Nothing of note is written in nim, and no-one is going to re-write existing codebases in it. Don't fool yourself otherwise.

>emscripten

emscripten

Agar.io is almost a decade old, they arent coming back at all.
The real reason browser games arent anymore is because kids rather become famous indie developers instead of just make games for fun. Gaming is fucking dead.

Yes, it's called emscripten. It compiles c to JavaScript and webassembly.