tokumaru wrote:
I'm not 100% sure, but Galaga appears to use 8x16 sprites.
Well, as you have already learned
, answers only bring more questions. Some games switch nametables during the game (like going from a menu to the gameplay). How do you know which nametable to use? I have been checking bits 1-0 of 0x2000, but that doesn't seem to work properly.
For instance, when Galaga starts, it is using $2800 and is mirrored at $2C00, but when the game begins, it changes to $2000 and is mirrored at $2400. How do you know which one is being used?
EDIT: This is what I've been doing, which is obviously wrong:
nameTable = 0x2000 + ((memory.memCPU[0x2000] & 0x03) * 0x0400);