NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: More questions  
Posted byBig Time
Posted on9/19/03 8:55 PM



>The brk thing is annoying

There's a doc on the main page about it. If it's not clear enough, let me know (I wrote it).


>How do I get the tile number for 8x16 sprites?

Here's an explanation of the 8x16 mode, which I hope will clear that up:

The LSB of the tile index determines pattern table selection, but otherwise, consider it to equal zero when using the tile index value to calculate the tile address for 8x16 sprites. This means that ALL pattern data used for any sprites have to be aligned to 2-tile boundaries. Hope that clears it up.


>Just a thought. The equation for the clock cycle of the sprite #0 hit
>CC = (y+21)*341 + x
>has been bugging me for quite a while. Doesn't this give you the upper left corner of the sprite, and not exactly the collision pixel?

"CPUcollisionCC = ((Y+21)*341+X)/3"

This is not to indicate that it has anything to do with calculating the primary object collision (hit) location. This formula is simply used to convert an absolute X/Y pixel coordinate on the screen, into the equivelant CPU clock cycle number at which the PPU is actually rendering that pixel.


>Would using this equation cause some problems or is that just ok?

This is how my emulator *still* does primary object collision detection, and man, I can't believe how well so many games work with this cheap implementation! Bottom line: object collision calculations can definetely be based solely on OBJ 0's Y coordinate. When you need to address your emulator's scrolling issues however, make sure object 0 collisions are infact working properly.



-
Entire Thread
Subject  Posted byPosted On
*Help!  kain falanx G9/17/03 4:11 PM
.*More questions  kain falanx G9/19/03 09:54 AM
...Re: More questions  Big Time9/19/03 8:55 PM
...*Re: More questions  hcs9/26/03 00:12 AM
..*Re: More questions  loopy9/19/03 4:01 PM
...*Re: More questions  kain falanx G9/20/03 11:42 AM
....*Re: More questions  Laughy9/20/03 9:06 PM
....*Re: More questions  ASMGuy9/20/03 4:46 PM
.....*Re: More questions  kain falanx G9/21/03 3:29 PM
.*Re: Help!  Big Time9/19/03 03:12 AM
.*Re: Help!  Disch9/17/03 11:53 PM
..*Re: Help!  kain falanx G9/19/03 09:56 AM
...*Re: Help!  Disch9/19/03 6:59 PM
....*Re: Help!  dXtr9/19/03 7:19 PM
..*Re: Help!  Laughy9/18/03 04:44 AM
...*Re: Help!  Disch9/18/03 06:03 AM
....*Re: Help!  Laughy9/18/03 8:42 PM
.....*Re: Help!  Disch9/18/03 10:12 PM
......*Re: Help!  Disch9/18/03 10:13 PM
.*Re: Help!  Memblers9/17/03 7:15 PM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo