nbarkhina / N64Wasm

A web based N64 Emulator
https://www.neilb.net/n64wasm/
MIT License
622 stars 132 forks source link

Save states via download #7

Open Nnanyere opened 2 years ago

Nnanyere commented 2 years ago

Hi, thanks for making this awesome emulator! I do have two issues, however. One is that I cannot access the D-pad keys on a keyboard. Adding keyboard controls for the D-pad the next time you update the emulator would be very much appreciated. Another thing you can improve about the emulator is to give players the option to save states in a file on their computer. My computer is set up so that save states are wiped whenever I restart the computer. Any way you could do that?

nbarkhina commented 2 years ago

Hi @Nnanyere

Those are some really good suggestions. The D-pad issue I actually knew about already but just omitted it mainly because the remap dialog box is getting super long. It's mostly going to boil down to me coming up with a good UX so that I could fit in those extra 4 buttons. I have been pretty careful about keeping the user interface as clean and simple as possible and have even gone as far as to hide some advanced features because I want the emulator to stay approachable and easy to use. That being said I totally recognize the need for D-pad buttons on keyboard so that is on my list of future features to add. As for the exporting of a savestate file, while I think your situation of wiping browser data on restart is a bit unique - that is still something I have considered because I do recognize that leaving a savestate inside the browser is not a great long term solution and could be lost. I do currently have a cloud savestates solution that is probably the best workaround however that does require you hosting your own server. If I come up with a good solution for importing/exporting savestates out of the browser in the future I will let you know.

Thanks.

nbarkhina commented 2 years ago

I added the D-pad controls you can try it here

https://neilb.net/n64wasm/v2/

Nnanyere commented 2 years ago

Hi, thanks again for adding the D-pad controls? For some reason, today I can't access the version 2 of the emulator because I get this 404 message:

image

Do you have any idea of what could have caused this?

nbarkhina commented 2 years ago

Hi @Nnanyere yes sorry about that I took down that link, but I published the latest version (including the D-Pad support) to the main link which you can access here https://neilb.net/n64wasm/