Search found 152 matches

by battagline
Mon Nov 26, 2018 1:22 pm
Forum: Newbie Help Center
Topic: Is there a clever way to do small random numbers?
Replies: 26
Views: 10075

Re: Is there a clever way to do small random numbers?

So I put a little demonstration of my random number generator on github. As I said, it's worked well for me, but it might not work for all cases: https://github.com/battlelinegames/nes-random I've also attached a .nes file demonstration. Press any button and it will generate new random numbers. I'm ...
by battagline
Mon Nov 26, 2018 10:11 am
Forum: Newbie Help Center
Topic: Is there a clever way to do small random numbers?
Replies: 26
Views: 10075

Re: Is there a clever way to do small random numbers?

And if the player is pressing the Start button on a particular beat of the music at the title screen, the player can probably make that press happen within a 66-millisecond window for one of four outcomes. You have two usable bits of entropy at that point. I think for most games if the player learn...
by battagline
Sun Nov 25, 2018 5:54 pm
Forum: Newbie Help Center
Topic: Is there a clever way to do small random numbers?
Replies: 26
Views: 10075

Re: Is there a clever way to do small random numbers?

Input from the player isn't "random", it's a deliberate response to what is happening in the game. If it responds the same way to the same input it's not very random. It's more a question of the player's precision. The frame increments every 16.6 milliseconds, and humans just aren't able to time th...
by battagline
Sun Nov 25, 2018 5:12 pm
Forum: Newbie Help Center
Topic: Is there a clever way to do small random numbers?
Replies: 26
Views: 10075

Re: Is there a clever way to do small random numbers?

The disadvantage of what you just proposed is an extremely short period. Consider this: anything in your game that happens with a 1/64 probability can only happen once in that PRNG sequence you just proposed. That means that any time that event happens, the player will know exactly what's going to ...
by battagline
Sun Nov 25, 2018 12:20 pm
Forum: Newbie Help Center
Topic: Is there a clever way to do small random numbers?
Replies: 26
Views: 10075

Re: Is there a clever way to do small random numbers?

So I had a solution that I haven't seen anyone else use. It seems to work for my purposes, not sure what anyone else would think about it, but basically I pre-generated 128 random numbers from 0-127 with no repeats. I set aside a block of 128 bytes to put those values in there. I have a frame counte...
by battagline
Sun Nov 25, 2018 12:07 pm
Forum: Newbie Help Center
Topic: JSNes and running your rom in a browser.
Replies: 9
Views: 6185

Re: JSNes and running your rom in a browser.

I made a more stripped down version here: http://files.slembcke.net/temp/nes-embed/treasure-stack.html At 100 lines, someone might find it a bit easier to embed in their own pages. I haven't gotten sound working yet though. The example version throws a ton of errors in the console for me so I was g...
by battagline
Thu Nov 15, 2018 11:14 am
Forum: Newbie Help Center
Topic: PPU RAM not including cartridge
Replies: 13
Views: 4829

Re: PPU RAM not including cartridge

I didn't mean to be rude, it's just that you did ask something that had already been answered. I know... sometimes I read through the responses and I don't pick up on everything mentioned. What usually happens is I read, then I ponder, then I think of new questions. I probably should have a re-read...
by battagline
Thu Nov 15, 2018 9:46 am
Forum: Newbie Help Center
Topic: PPU RAM not including cartridge
Replies: 13
Views: 4829

Re: PPU RAM not including cartridge

tokumaru wrote:I guess you weren't paying attention.
I'm always paying attention. I'm just a little slow, so I don't always understand everything ;-)

Anyway, I'm not trying to annoy you. I really do appreciate the help.
by battagline
Thu Nov 15, 2018 8:27 am
Forum: Newbie Help Center
Topic: PPU RAM not including cartridge
Replies: 13
Views: 4829

Re: PPU RAM not including cartridge

Ok, so to make sure I understand, the bottom 8K (Pattern Table) is basically the CHR ROM chip that's on the cartridge. The 2K of PPU RAM is used for 2 Nametables that are either horizontally or vertically mirrored. That's a total of 10K So where does the sprite data from the DMA go? Does it get copi...
by battagline
Wed Nov 14, 2018 9:21 pm
Forum: Newbie Help Center
Topic: PPU RAM not including cartridge
Replies: 13
Views: 4829

PPU RAM not including cartridge

I've been looking through the PPU documentation and I'm trying to figure out how much Memory the PPU has if you don't add any additional memory that it uses on the cartridge. I know it can address 16K. If you remove the space dedicated to mirrors from the PPU Memory map it looks like it has about 12...
by battagline
Wed Nov 14, 2018 9:07 pm
Forum: Newbie Help Center
Topic: JSNes and running your rom in a browser.
Replies: 9
Views: 6185

Re: JSNes and running your rom in a browser.

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...
by battagline
Sun Nov 11, 2018 8:42 am
Forum: Newbie Help Center
Topic: JSNes and running your rom in a browser.
Replies: 9
Views: 6185

Re: JSNes and running your rom in a browser.

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...
by battagline
Sat Nov 10, 2018 9:27 am
Forum: Newbie Help Center
Topic: JSNes and running your rom in a browser.
Replies: 9
Views: 6185

JSNes and running your rom in a browser.

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 ex...
by battagline
Sat Nov 10, 2018 9:22 am
Forum: Newbie Help Center
Topic: Controlled sprite flicker
Replies: 29
Views: 8502

Re: Controlled sprite flicker

Well, it's up to you whether you care about YouTube, etc. but a lot of people like to experience games through Twitch, YouTube, etc. and the effect of alternating frames is that one of them just doesn't get seen. If you're complaining about 2 frames in a row of invisible character on a CRT, the str...
by battagline
Wed Nov 07, 2018 6:31 pm
Forum: Newbie Help Center
Topic: Controlled sprite flicker
Replies: 29
Views: 8502

Re: Controlled sprite flicker

Maybe a more minor issue is the middle ground where you have 9-15 sprites on a line: in this case only the low and high sprites will be flickering, but the ones in between will be solid. This gives very uneven looking flickering, as only some of the sprite tiles will participate in it. That's prett...