GithubHelp home page GithubHelp logo

nesbox / emulator Goto Github PK

View Code? Open in Web Editor NEW
586.0 78.0 247.0 12.12 MB

Emulator of NES, Super Nintendo, Sega Mega Drive, GameBoy video consoles

Home Page: http://nesbox.com/emulator/

License: MIT License

ActionScript 100.00%

emulator's Introduction

Nesbox Emulator

NESbox is an emulator of NES, Super Nintendo, Sega Mega Drive and GameBoy video consoles, built on Adobe Flash technology and it can only be run directly in your browser's window.

How to embed the emulator to your webpage?

Get all .swf files in /bin folder and upload to your server (for example to /flash folder). Add the following html to page where you want to place the emulator.

<div>
	<div id="emulator">
		<p>To play this game, please, download the latest Flash player!</p>
		<br>
		<a href="http://www.adobe.com/go/getflashplayer">
			<img src="//www.adobe.com/images/shared/download_buttons/get_adobe_flash_player.png" alt="Get Adobe Flash player"/>
		</a>
	</div>
</div>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>

<script type="text/javascript">

	var resizeOwnEmulator = function(width, height)
	{
		var emulator = $('#emulator');
		emulator.css('width', width);
		emulator.css('height', height);
	}

	$(function()
	{
		function embed()
		{
			var emulator = $('#emulator');
			if(emulator)
			{
				var flashvars = 
				{
					system : 'sega',
					url : '/roms/Flappy Bird (PD) v1.0.gen'
				};
				var params = {};
				var attributes = {};
				
				params.allowscriptaccess = 'sameDomain';
				params.allowFullScreen = 'true';
				params.allowFullScreenInteractive = 'true';
				
				swfobject.embedSWF('flash/Nesbox.swf', 'emulator', '640', '480', '11.2.0', 'flash/expressInstall.swf', flashvars, params, attributes);
			}
		}
		
		embed();
	});
	
</script>

Supported systems: nes, snes, sega, gb, gba

License

MIT

emulator's People

Contributors

nesbox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

emulator's Issues

How to embed?

When trying to embed NesBox in my Weebly site, I had some trouble, even after reading your instructions. Any suggestions would be a huge help.

Case sensitive file names

Emulator can't detect ROM type by it extension when extension is in uppercase. Like "BattleCity.NES"

Add new graphics display filter

Hello,

I would like to ask if you can add two more new graphics display filters to the emulator:
1.Blur filter.
2. 2xsai filter.

You can add a graphics switch button on the bottom menu, when each click will change the display mode (default will be standard).
You can also add a parameter to the html file in order to force the emulator to display a specific graphics filter.

emulator wont work on site

i followed all the steps , and even looked up some other steps to try and fix my issue but still dosent work, please help me out! i can give you my code so you can see if its right and my website, its on my website but i just get a blank white screen? what do i do?

Japanese NES games with issues

I tried most of the versions for the roms available for each game from mondemul.net :

Dragon Ball: Daimao Fukkatsu (japanese font not displayed properly, game running however)
Dragon Ball 3: Gokuden (japanese font not displayed properly, game running however)
Dragon Ball Z: Kyôshu! Saiyan (crash at splash screen)
Dragon Ball Z II: Gekishin Freeza (Running perfeclty with the [hFFE] release only, everything else is crashing on other releases)
Dragon Ball Z II: Ressen Jinzoningen (Running perfeclty with the [hFFE] release only, everything else is crashing on other releases)
Dragon Ball Z: Gaiden (crash in the main screen after the splash video)

All of theses games are from the same developper, it probably explain the issue here.

NesBox Save State Conversion

Hello. I have been trying to migrate from NesBox Flash version to VirtualBoy Advance, because it allows for more configuration options. However, no matter how hard I try I cannot load the Save State file from NesBox into VirtualBoy Advance, because it is failing with an error. Relative information also here: http://gaming.stackexchange.com/questions/264343/nesbox-to-virtualboy-advance-save-file-conversion . Can someone help me convert the state files or somehow save game data to an EEPROM file or else format?

Emulator.css / resize

I noticed that in the coding there is a section that calls for emulator.css, in looking through all the files, I don't see any emulator.css file, is there suppose to be one?

Also, is there a way to "resize" the game itself? I tried resizing from with in the js
swfobject.embedSWF('files/Nesbox.swf', 'emulator', '700', '515', '11.2.0',

But that doesn't seem to work, is there some other way to resize the game itself?

Help with rom hosting

I have a yola website that I use for the emulator, but it only allows for 5 MB uploads at a time. Therefore, I can't upload any gameboy advanced games. So I am trying to host them from dropbox, which I have upload to, but I can't seem to make them work. The screen just loads black. This is my website. The game that I need help on is Pokemon Emerald.

French Game Release plays at 60FPS/NTSC

Bug found on : NES/SNES/Megadrive

A french release of a game plays at 60FPS in NTSC rather than locked at a PAL framerate of 50FPS.
(Using Fraps for Windows)

You can hear it with speedy music and a gameplay way too fast.
I fixed it by locking the NTSC framerate at 50 FPS but i think it could run better as a PAL game properly detected.

Games with this kind of issue :
NES (Dragon Ball: Le Secret du Dragon)
SNES (Dragon Ball Z : La Légende Saien)
Megadrive (Dragon Ball Z: L'Appel du Destin)

Can't get it to work!

I put the code in to the html and opened it but it said to download flash player which I already have.

Emulator Loading 100% but no run

Hello i just want to embed the emulator into my website
this is my index page:
`
// the javascript:
var resizeOwnEmulator = function(width, height)
{
var emulator = $('#emulator');
emulator.css('width', width);
emulator.css('height', height);
}

$(function()
{
    function embed()
    {
        var emulator = $('#emulator');
        if(emulator)
        {
            var flashvars = {
                system : 'nes',
                url : "/roms/Metroid.nes"};
            var params = {};
            var attributes = {};

            params.allowscriptaccess = 'sameDomain';
            params.allowFullScreen = 'true';
            params.allowFullScreenInteractive = 'true';

            swfobject.embedSWF('bin/Nesbox.swf', 'emulator', '640', '480', '11.2.0', 'flash/expressInstall.swf', flashvars, params, attributes);
        }
    }

    embed();
});

`

But it is not working.
The Emulator is displayed, but he just says Loading game 100%
But it doesnt matter where the rom is. If I say url:"asjdfkajs;dlkfja;lsdkjf;lkasjdf"
then he says Loading game 100%

If i let flashvars empty like this:
var flashvars = {};

The Emulator displays to and i can click on it and choose a rom and can play!

But of course i want to choose a rom in the code.

My Directories on the server is

index.php
Nesbox.as3proj
src
roms
-Metroid.nes
lib
flash
-expressInstall.swf
bin
-Nesbox.swf
-nes.swf

So Pls guys can someone help me out?

Game Genie

Let's get some Game Genie support, I will donate for this feature.

Resolved

Just realized this was my fault, ignore issue.

Sega Genesis / Mega Drive

I see you allow .gen files (Japanese Mega Drive) can you implement Sega Genesis (U) files as well? All my Sega Genesis games are in .bin format.

Thanks in advance and always happy to support for more functions.

How do you add this to a website?

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!

Local web server

Can this run on a local web server such as xampp? Also if I put this on a live website do i need to credit anyone?

Key rebinding/control issues

I want to play games with a controller, but whenever I press B it just sends me back to the nesbox menu. I tried to rebind the keys but whenever I exit the settings it just resets back to the default.

my emulator loads to 100% and then nothing else happens

Hi I'm trying to embed the emulator and nhl 94 into a blog post on Blogger. I'm using dropbox for the files and it looks like it loads to 100% and then fades to black. Am I supposed to put the snes.swf file in the embed as well?

Stretch/Resize GB and GBA games by default

I noticed that when loading GBA games, the frame is quite small. Is there a way to adjust this? GBC is set as 320px by 288px. It will look nice if it can be as wide as 640px. If there is a way to do this, please point me in the right direction. I checked all source files (as3,js,) but can't find it.

Similar Emulator

At gbafun.com, there is is a similar emulator that looks like nesbox? Do you know the name of that emulator?

Need Emulator to Read Zip

Hi,

All of the ROMs are zipped on my website. I would like to add the functionality to read .zip files that have all the compatiable files inside. It would be very helpful.

I am happy to donate to your cause and appreciate your continual work on this project. The faster the better 👍

Regards,
Jacob

Battery Saving on Windows Metro App

In-game save files don't work on Nesbox emulator. A great example would be the Pokemon games which would be explained in screenshots. The first shot shows that the game is saved. After reloading the game, the save file disappears as stated on the second shot.
screenshot 485
screenshot 486

Player one - keyboard, player two - gamepad issue

I want to play a game with a friend of mine, but we only have 1 joypad, so we want 1 of us to play with the keyboard and the other one to use the pad, but the game would automatically assume that the pad is player one and would not connect the other one of us.

Saving SRAM

Is it possible to add support for saving the SRAM to the browser's cache by using in-game saving?

unable to play using Xbox Controller

System : Windows 8.1 running NESbox Emulator.

steps to recreate issue:

  1. Check task manager - ensure no running NESbox emulators are running
  2. unplug / replug controller
  3. Load NesBox
  4. Run game (legend of Zelda) - game loads from restore point - cannot use controller.
  5. Keyboard works as expected.
  6. Try lanuching a new game not previously played
  7. controller fails to work
  8. Have been able to use controller for other games, and it is seen by Windows.

Customize Nesbox Emulator

I've installed Nesbox emulator on my Website. I'd like to customize the player:

  1. Add a play button (png or flash" to start the game)

  2. Remove some of the player icons and maybe change some of them

Could you do it?

Thanks

Best regards
JR

Add SNES Mouse support

The emulator needs to support the important SNES Mouse. Mario Paint is unplayable without it.

Keyboard Keys for Player 2 react as Player 1

When using the the keys number : "2,6,4,8", it reacts as the keys for player 1 along with "up,down,right,left".
Is their an hidden parameter in the flash object to separate them?

Thanks!

Can you add a mute parameter, please?

I know this seems obvious, but with the sound being somewhat mutated, it would make perfect sense to have a setting for mute/ no sound.

Good emulator,

one other problem i am having the game window is not the right size for the game and whats more i am losing some of the right and bottom edges of the screen.

raw roms

Hi!
Can the emulator load raw roms as text?
Thanks.

base64

Hi.
I have been testing Nesbox with loading ROMs from websites. I have successfully used code that will get a rom, convert it into base 64, and convert the base 64 into a Data URI. Unfortunately, Nesbox does not support Data URIs. Is there another way to load roms from different websites, or use the base 64 with Nesbox?
Thanks!
http://colt05.github.io/nesbox/test3

Online Multiplayer

Hey,

I herd that at one point, this emulator had an awesome online multiplayer feature. I can't believe I missed such a cool thing so I am asking that the online multiplayer feature could be returned.

Many thanks again for the help and keep up the good work!

Sega master system и Sega Game Gear!

Хотелось бы еще добавить поддержку приставок Sega master system и Sega Game Gear, ну или хотя бы Sega master system, без них картина не полная.

И в GAME BOY COLOR звук отключается по нажатию на соответствующую клавишу, но при повторном нажатии не включается.

Спасибо.

Emulators

Are the emulators based on other open source emulators? I can't find them other than the compiled js/swf files?

Did you write emulators for all these consoles from the ground up?

Variable to URL

I am trying to use Javascript to pull a value from a drop down list. (ex. './snes/Breath_of_Fire.zip') and use that as the URL variable for Flashvars.

I have managed to pull the variable, but when I try to added to flashvars, it doesn't recognize it.

Is there a certain way the variable has to be specified in flashvars?
Is this even possible?

The value is './snes/Breath_of_Fire.zip'

I did an alert(game) to show that the variable is being picked up.

Current Script:

var resizeOwnEmulator = function(width, height)
{
    var emulator = $('#emulator');
    emulator.css('width', width);
    emulator.css('height', height);
}

$(function()
{
    function embed()
    {
        var emulator = $('#emulator');
        if(emulator)
        {
            var game = document.getElementById('chosegame').value;
           alert(game);
            var flashvars = 
            {
                system : 'snes', 
                url : game 
                };
            var params = {};
            var attributes = {};

            params.allowscriptaccess = 'sameDomain';
            params.allowFullScreen = 'true';
            params.allowFullScreenInteractive = 'true';


            swfobject.embedSWF('bin/Nesbox.swf', 'emulator', '800', '600', '11.2.0', 'flash/expressInstall.swf', flashvars, params, attributes);
        }
    }

    embed();
});

Thank You!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.