nesbox / emulator

Emulator of NES, Super Nintendo, Sega Mega Drive, GameBoy video consoles
http://nesbox.com/emulator/
MIT License
592 stars 247 forks source link

How do you add this to a website? #34

Closed squarepear closed 4 years ago

squarepear commented 8 years ago

I am trying to make a website with a bunch of games, some of them will be games I made others will be things like Super Mario Bros. 3. I was trying to add this to my website and I got confused on how all the files are supposed to go. So could you please make an folder that just has a working game so that I can edit it for my site?

Thanks!

nesbox commented 8 years ago

Hi,

squarepear commented 8 years ago

It is still not working

http://www.mediafire.com/download/edkh6iix111wxxr/Website.zip

that is the site file stuff, The Ngame1.html is going to be Super Mario Bros 3. Why is it not working?

dosboxonline commented 8 years ago

Replace "system : 'sega'" - "system : 'nes'" and upload on web server. Local not work.

hgoda90 commented 8 years ago

The flashvar code in the embed code is what system you want and where the rom file is located. So if you want a nes game and your file is located in a folder called roms, the code would look like:

var flashvars = { system : 'nes', url : "roms/Super Mario Bros. 3.nes" };

The system part of the code is what system you want loaded. The url part points to the game it should load.

You might also have to change the location of the Nesbox.swf file. The code looks like:

swfobject.embedSWF('NesboxFileLocation/Nesbox.swf', 'emulator', '640', '480', '12.2.0', 'flash/expressInstall.swf', flashvars, params, attributes);

Wrongful commented 7 years ago

Not sure if this is the right place, but... I'm trying to make a simple website using Notepad++, and I want to embed a nesbox emulator that played Earthbound. I uploaded the folders, and I did as instructed, yet when I click "Run in Chrome", it just displays the code as if it's regular text. I set the language to Javascript, and I have all of the bin folders, and I'm fairly sure I did everything right. Here's the link: file:///D:/Docs/new%201.js I'm rather new to programming, so please explain simply!

askplove commented 7 years ago

how copy 'bin' folder to my wordpress website?

hgoda90 commented 7 years ago

Wrongful the link shows if it was on your computer and not on an actual link. Plus to actually use the embedded version of Nesbox you have to have the files on some sort of server, actual server or a virtual server with something like Xampp.

bootheidiot commented 5 years ago

I want to upload nesbox to google sites but I don't know how anyone know how to do this?

eviL-Lizard commented 4 years ago

Wrongful the link shows if it was on your computer and not on an actual link. Plus to actually use the embedded version of Nesbox you have to have the files on some sort of server, actual server or a virtual server with something like Xampp.

Please explain more please

Laveniuk commented 4 years ago

Do you know how I would be able to add this emulator to my website. I am using Sitebuilder.com Its quite a simple system but may not be able to add this. Any thoughts?

GuillermoCAB commented 4 years ago

Hey bro, so i dont know how does sitebuilder.com works, so i can't say for sure, said that, insert nesbox on your code is a easy task, i just need to copy and paste some code snippets on your html. Most of builder sites, like wix (i imagine sitebuilder also) have ways to insert code direct into the website. You probably need some experience with code and frontend but is not rocket science, maybe a few youtube lessons and you'll be able to do it. Also check stackoverflow forum and see if someone knows how to do it.

Muito Grato, Guillermo de Camargo

Em ter., 28 de abr. de 2020 às 17:17, Laveniuk notifications@github.com escreveu:

Do you know how I would be able to add this emulator to my website. I am using Sitebuilder.com Its quite a simple system but may not be able to add this. Any thoughts?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nesbox/emulator/issues/34#issuecomment-620831612, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALWEQ3HZXZTTRAS24FM7K7TRO42WDANCNFSM4B7UOFFQ .

Laveniuk commented 4 years ago

There are custom HMTL sections you can put on per page. Were you able to do it with Wix?

Laveniuk commented 4 years ago

I just spoke with sitebuilder.com's tech chat, and they said there is no access to the directories. So this is probably not possible then.