eli5: How do websites run emulators and play video games on them?

331 viewsOtherTechnology

I saw Metal Gear Solid running on a website one time.

In: Technology

3 Answers

Anonymous 0 Comments

You can write a computer program that takes instructions meant for another type of computer and translates them to instructions that it can run. It’s just rules, really.

It’s actually quite interesting, any computer that is turning complete can run any computer program: [https://en.wikipedia.org/wiki/Turing_completeness](https://en.wikipedia.org/wiki/Turing_completeness)

So, in theory, you could run Metal Gear Solid on a Spectrum 48KB.

Anonymous 0 Comments

Websites use JavaScript to ’emulate’ the game code so your browser acts like a console. It’s like turning your browser into a mini PlayStation!

Anonymous 0 Comments

Web browsers run Javascript which is a fully fledged programming language. You can basically write anything with it, including emulators.