i am very confused with these two question and spent lots of time on it. but i still can't sure what is the correct answer. help me
1.the first entry(first byte) of every sprite in OAM is the upper left y-coordinate of the sprite -1. so if a game progammer put a sprite at (12,0) , the data saved to OAM will be (12,-1) ?
2. if we are on scanline 21, and the data in OAM is (12,0). how to evaluate whether the sprite is in range or not? i use (21-21)-(0+1)=-1 so it's out of range. is this correct? or i should use (21+1-21)-(0+1)=0 so it's in the range?
Thank you.
1.the first entry(first byte) of every sprite in OAM is the upper left y-coordinate of the sprite -1. so if a game progammer put a sprite at (12,0) , the data saved to OAM will be (12,-1) ?
2. if we are on scanline 21, and the data in OAM is (12,0). how to evaluate whether the sprite is in range or not? i use (21-21)-(0+1)=-1 so it's out of range. is this correct? or i should use (21+1-21)-(0+1)=0 so it's in the range?
Thank you.