It is currently Mon Nov 19, 2018 11:09 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Sat Nov 10, 2018 9:27 am 
Offline
User avatar

Joined: Wed Sep 05, 2018 11:13 am
Posts: 146
Location: Colorado
I'm not sure if anyone here is familiar with JSNes.org. I've been going through the open source project JSNes and trying to get it working with some of my roms on one of my websites, but I've been running into issues. It looks like you should be able to get it running without using React, but the example they use JSNes-web uses React, so I'm trying to figure out how to get it working without React.

Anyway, I suspect this is something I'm going to have to do on my own, but I wanted to ask if anyone else has done this before I waste a few days trying to figure it out. So if you've worked with JSNes in the past, and don't mind me asking you a few questions, please give me a shout.

Thanks,
Rick

_________________
A few of my web games
https://www.embed.com
Or if you're bored at work
https://www.classicsolitaire.com


Top
 Profile  
 
PostPosted: Sat Nov 10, 2018 11:30 am 
Offline
User avatar

Joined: Sun Apr 08, 2018 11:45 pm
Posts: 22
Location: Southern California
Have you tried contacting the developer? He's on twitter, and looks like a very experienced web developer. He could probably give you some good advice.


Top
 Profile  
 
PostPosted: Sun Nov 11, 2018 8:42 am 
Offline
User avatar

Joined: Wed Sep 05, 2018 11:13 am
Posts: 146
Location: Colorado
samophlange wrote:
Have you tried contacting the developer? He's on twitter, and looks like a very experienced web developer. He could probably give you some good advice.


I tried sending him an email, but he never got back to me. I can figure this stuff out, it's just a lot more time consuming. I figured it was kind of a long shot asking if anyone here had worked with it, but you never know.

Thanks for the suggestion

_________________
A few of my web games
https://www.embed.com
Or if you're bored at work
https://www.classicsolitaire.com


Top
 Profile  
 
PostPosted: Mon Nov 12, 2018 8:43 am 
Offline
User avatar

Joined: Fri Nov 24, 2017 2:40 pm
Posts: 85
I spent like a day or so on it a year ago. Ran into the same issues mostly. I tried contacting the dev as well, but maybe it wasn't an active email or something?


Top
 Profile  
 
PostPosted: Wed Nov 14, 2018 9:07 pm 
Offline
User avatar

Joined: Wed Sep 05, 2018 11:13 am
Posts: 146
Location: Colorado
Got it working, but it seems to have some problems with sprites that are smaller than 8x8. By smaller I mean they have transparent pixels all the way around the edge so that they are effectively smaller than 8x8.

https://www.embed.com/nes/nesteroids.html

the controls are arrow keys for the d-pad and asdf for select, start, b, a Next week I'm on vacation. The week after that I'll try to get my jsnes helper out... I'll also need to try and figure out why jsnes has issues with the smaller than 8x8 sprites.

_________________
A few of my web games
https://www.embed.com
Or if you're bored at work
https://www.classicsolitaire.com


Top
 Profile  
 
PostPosted: Fri Nov 16, 2018 9:08 pm 
Offline

Joined: Fri Dec 27, 2013 4:28 pm
Posts: 80
I had a bit of luck using a different emulator: https://github.com/peteward44/WebNES (It's MIT licensed) ... might be worth trying to see if it avoids your bug. There's a demo site you can load your rom in w/o setting it up to see: http://peteward44.github.io/WebNES


The version they use for their demo is a lot easier to look at: https://github.com/peteward44/WebNES/tree/gh-pages -- if you look at the index_app.html, that shows how to embed it and use it.


I'm using it for my starter kit app here if you want another demo: https://cppchriscpp.github.io/nes-starter-kit/ -- I stripped out a lot of the formatting around it to make it simpler.

Hope this helps!


Top
 Profile  
 
PostPosted: Sat Nov 17, 2018 4:17 am 
Offline
User avatar

Joined: Mon Jan 03, 2005 10:36 am
Posts: 3138
Location: Tampere, Finland
I would go for an Emscripten-based emulator (asm.js/WebAssembly) such as https://github.com/ryanwmoore/fceux for better performance.

_________________
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: fo.aspekt.fi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group