+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  SNES Web Based Emulator?
Pages: [1]
Author Topic: SNES Web Based Emulator?  (Read 1 times)
Zeemis
Guest
« on: April 19, 2010, 07:17:49 pm »

I'm aware that there is a javascript NES emulator out there in a few locations on the interent, but was there every a javascript/java/ or Flash based SNES emulator created?
Would it be difficult to make?
Azkadellia
Guest
« Reply #1 on: April 19, 2010, 07:21:02 pm »

http://board.zsnes.com/phpBB3/viewtopic.php?f=10&t=13029 Don't expect anything fabulous though.
AprilAero
Guest
« Reply #2 on: June 14, 2010, 01:16:50 pm »

wouldn't a web based emulator be very lagy , you probably could not make an emulator with Javascript, since it is just a language to extend what you can do with web pages, Javascript is not a stand alone programming language. Flash tends to be very memory intensive, I have seen some flash games (like Cafe World) that use more memory than normal computer games like SimCity 4 and others. .

Now Java would be the way to go since Java is a cross platform language , the source code for ZSNES is available , I believe ZSNES is written in C.
I.S.T.
Guest
« Reply #3 on: June 14, 2010, 01:27:22 pm »

It's written in a bastard combination of C, ASM(Mostly ASM) and maybe some C++, though I doubt it. The code is near unreadable as well, if what more than one friend of mine tells me is true.
AprilAero
Guest
« Reply #4 on: June 14, 2010, 05:52:13 pm »

that raises further questions , why go thru the trouble of making an emulator in Java if you are going to make it web based, since it would get lower CPU Priority than a normal standalone application would get.
Kronus_Arm
Guest
« Reply #5 on: June 14, 2010, 06:28:43 pm »

Quote from: Zeemis on April 19, 2010, 07:17:49 pm
I'm aware that there is a javascript NES emulator out there in a few locations on the interent, but was there every a javascript/java/ or Flash based SNES emulator created?
Would it be difficult to make?

The NES emulator you're talking about was written in Java, actually there are 2, one is for the most part complete, but have this wierd sound and slowdown issues with it, while the other one plays fine but doesn't have to much options to tinker with and have some issues with some games (e.g. Dracula's Curse)

http://www.nescafeweb.com/ - NESCafe
http://www.virtualnes.com/ - vNES

guspaz
Guest
« Reply #6 on: July 02, 2010, 03:35:49 am »

Quote from: AprilAero on June 14, 2010, 01:16:50 pm
wouldn't a web based emulator be very lagy , you probably could not make an emulator with Javascript, since it is just a language to extend what you can do with web pages, Javascript is not a stand alone programming language. Flash tends to be very memory intensive, I have seen some flash games (like Cafe World) that use more memory than normal computer games like SimCity 4 and others. .

Now Java would be the way to go since Java is a cross platform language , the source code for ZSNES is available , I believe ZSNES is written in C.

Maybe five or ten years ago. Today, Javascript can do pretty much anything; Google showed off their Google Web Toolkit by porting Quake II to JavaScript (including hardware rendering via WebGL).

JavaScript is, after all, a complete programming language running in just-in-time compilers with increasingly more and more APIs to access (canvas tag went a long way).

If you'd like to see some emulators running entirely in JavaScript, I'm aware of two.

JSNES: This is a NES (not SNES) emulator: http://benfirshman.com/projects/jsnes/

JSGB: This is a GameBoy Colour emulator: http://www.codebase.es/jsgb/

Both of these are 100% JavaScript. There is no proper audio support, since JavaScript has no way of playing back procedurally generated audio (it can just play pre-defined clips, hence how the Quake 2 port can have normal audio). JSNES tries to cheat by generating the audio data and then feeding it through a flash proxy to get it to the speakers, but javascript alone can't.

Both of these emulators should run at full speed 60FPS in Chrome (on an i7 920, anyhow), so they're fully playable. I was able to run them on my iPhone, but very slowly. For example, JSGB ran on the iPhone 3GS at about 6FPS, or 10% speed. Painful!
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC