Search found 5 matches

by roedesh
Sun Aug 12, 2018 12:41 pm
Forum: Newbie Help Center
Topic: Random number in range
Replies: 7
Views: 3029

Random number in range

Hi, I'm trying to get a random number between 3 and 30. First I generate a random number (0-255), then I use AND to trim it to a number between 0-31 and then I add 3 to change the range to 3-34. JSR Random AND #31 ADC #3 ; range from 3 to 34 But how do I account for the four possible numbers that co...
by roedesh
Tue Jul 24, 2018 6:28 am
Forum: NESdev International
Topic: Language: Dutch
Replies: 13
Views: 24823

Re: Language: Dutch

Ik ben ook een Nederlander. Ik woon zelf in Limburg.
by roedesh
Sun Jul 22, 2018 10:52 am
Forum: Newbie Help Center
Topic: Get address from background tile at x,y in ASM
Replies: 7
Views: 2657

Re: Get address from background tile at x,y in ASM

That did the trick! If I may ask, what exactly does that piece of code do?
by roedesh
Sun Jul 22, 2018 8:59 am
Forum: Newbie Help Center
Topic: Get address from background tile at x,y in ASM
Replies: 7
Views: 2657

Re: Get address from background tile at x,y in ASM

Thanks, that works. I can update the tiles now, but when I do so it causes some glitchy stuff to happen:

Image
by roedesh
Sun Jul 22, 2018 7:29 am
Forum: Newbie Help Center
Topic: Get address from background tile at x,y in ASM
Replies: 7
Views: 2657

Get address from background tile at x,y in ASM

I have some trouble updating a specific background tile, specifically finding the address to write the new tile to. My game contains 8px grid movement, so my x and y values already are 8px units (I've read somewhere that this is necessary). What I would like to know is how to calculate the new addre...