Skip to content

Embed a Nintendo DS emulator easily. (Embeddable version of DeSmuME-wasm)

Notifications You must be signed in to change notification settings

js-emulators/desmond

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

desmond

Embed a Nintendo DS emulator easily. (Embeddable version of DeSmuME-wasm)

Installation

npm install desmond-emu

You can also run this to get Desmond files on Linux, and on Windows with WSL2 and wingubash:

curl https://raw.githubusercontent.com/js-emulators/desmond/main/installer.sh | sh

Or you can use through CDN:

<script src="https://cdn.jsdelivr.net/gh/Unzor/desmond/cdn/desmond.min.js"></script>

Make sure to put the script below all elements in body but on top of the script you will use to initiate Desmond (like this).

Usage

<html>
  <body>
    <desmond-player id="player"></desmond-player>
    <script src="path/to/desmond.min.js"></script>
    <script>
    document.getElementById("player").loadURL("path-to-game.nds");
    </script>
  </body>
</html>

Run function after load

To run a function after the file loads, you may attach a function as the second argument. You can also enable microphone using it.

Enable microphone

To use the microphone, you have to use the "enableMicrophone" function inside of the callback function. Here is an example:

<!doctype html>
<html>
<body>
    <desmond-player id="player"></desmond-player>
    <script src="path/to/desmond.min.js"></script>
  <script>
      var player = document.getElementById("player");
      player.loadURL("FILE_HERE.nds", function(){
         player.enableMicrophone();
      })
  </script>
</body>

</html>

About

Embed a Nintendo DS emulator easily. (Embeddable version of DeSmuME-wasm)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published