Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Any way to prepare SNES games for html5 play-in-browser? (if not here's an idea)

A topic by rezajamesahmed created Jul 19, 2021 Views: 860 Replies: 4
Viewing posts 1 to 2
(+1)

Does anyone know how to package a SNES game for play in browser/some kind of way to combine emulator+rom into an executable HTML5 zip?

I've never programmed in html so I probably would not be able to do it, but here's a github that might be a place to start: https://github.com/lrusso/Emulatrix Looks like it would be a big task, but might be cool for those who want to make their game more accessible. Any ideas?

Submitted(+1)

I also was already looking for this a few weeks ago. Dr.Ludos actually uses a SNES9x port for HTML5 play-in-browser: https://drludos.itch.io/keeping-snes-alive

It seems to be this library in the background: https://github.com/humbertodias/emscripten-js-snes-games

If you look at his well documented index.html (right click -> this frame -> view page source) file, you can easily see how he did it (and leave a credit to Dr.Ludos if you use it as thanks :D).

However, I tried a lot of different JavaScript SNES emulators and most of them had strong performance issues when playing CPU intense SNES ROMs. (At least on my PC). So I'd still suggest to download the SNES ROM to everyone who really want's to play the SNES games.

Wow thank you for this info! Sounds like downloading the rom is the best option then! 

(2 edits)

Hi, thanks for the mention and i'm glad the comments in my HTML files could be helpful to someone :)!

To restate them here, I used a HMTL5 port of RetroArch SNES9x core made by Toadking (https://toadking.com/retroarch/snes9x-next.html)

I set various options and modified the HTML page to embed a specific rom so it's easier to release a homebrew game on itch, so It might be easier to take my customized files and simply edit them and replace the rom file with your own game :).

@BennySnesDev: do you also have issue playing KeepingSnesAlive through HTML5 emulator on your computer? From the HTML5 SNES emulators I've tried, I found this port of RetroArch to be the fastest (I use a fairly low-spec / cheap pc myself too, and the game is running smooth for me).

Submitted(+1)

Thank you :)

It depends on the browser I'm using. The game runs very smoothly with Firefox, but when I start it with Chromium (Linux) the audio playback is very noisy.  But apart from that, the game works very well for me. :)