Skip to content

guyotJs/Emulator-creation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Emulator creation

How to make a emulator in NeptunJS

In the body include

<div id='emu'></div>

Under that, You Must include this in a <script></script> tag

      var NepPlayer = "#emu";     
      // ID of html element where emulator will be inserted

      var NepEmu = "gba";         
      // Platform select ex. nes, snes, gba

      var NepLang = "en";
      // Option "en,rus,ptBR,ja"
      // The language options

      var gameUrl = "./yoshis_island.smc"; 
      // The game file link

Under this include

<script src="https://mem.neptunjs.com/njs/njsLoader.js" type="text/javascript"></script>

And BAM there is your emulator!

<!DOCTYPE html>
<html>
    <head>
        <title>MyFirstEmulator</title>
    </head>
    <body>
      <div class="#emu"></div>
      <script>
          var NepPlayer = "#emu";     
          // ID of html element where emulator will be inserted

          var NepEmu = "gba";         
          // Platform select ex. nes, snes, gba

          var NepLang = "en";
          // Option "en,rus,ptBR,ja"
          // The language options

          var gameUrl = "./yoshis_island.smc"; 
          // The game file link
      </script>
      <script src="https://mem.neptunjs.com/njs/njsLoader.js" type="text/javascript"></script>
    </body>
</html>

Optional, Submit a PR (Pull request) with the new emulator to The old server
Make sure to include the game file (smc,gba,etc)

About

How to make a emulator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors