So this is a strange one...
I'm using horizontal mirroring. Originally, I'd used my main nametable (at $2000) pretty much exclusively. I've since decided to use the nametable at $2800 to handle my sub-menu so that I can easily preserve things like destructable terrain on a screen (don't have to reload the screen now, just shift to the other nametable).
Works fine for the most part except for one glaring thing.
So when the menu loads, game does a quick check to see what inventory items have been attained and either draws them or draws a *blank square* in their space. While the screen is turned off, if the inventory item bit is checked, it might originally have loaded the blank tile to $20A4, $20A5, $20C4 and $20C5. This worked fine.
Now, I'm transitioning to write it at $28A4, $28A5, $28C4 and $28C5. I know these are the correct addresses. However, when doing this, it draws this with a weird offset and not where it should. I've also tried in place making sure that the scroll is set to 0, but that didn't fix it.
Code is pretty simple - looks like:
LDA #$28
STA $2006
LDA #$a4
STA $2006
LDA #$f5 ;; the tile
STA $2007
Should this essentially do the exact same as $20 and $a4 respectively when that other nametable is showing? Anyone think of why this might not yield the same visual result?
I'm using horizontal mirroring. Originally, I'd used my main nametable (at $2000) pretty much exclusively. I've since decided to use the nametable at $2800 to handle my sub-menu so that I can easily preserve things like destructable terrain on a screen (don't have to reload the screen now, just shift to the other nametable).
Works fine for the most part except for one glaring thing.
So when the menu loads, game does a quick check to see what inventory items have been attained and either draws them or draws a *blank square* in their space. While the screen is turned off, if the inventory item bit is checked, it might originally have loaded the blank tile to $20A4, $20A5, $20C4 and $20C5. This worked fine.
Now, I'm transitioning to write it at $28A4, $28A5, $28C4 and $28C5. I know these are the correct addresses. However, when doing this, it draws this with a weird offset and not where it should. I've also tried in place making sure that the scroll is set to 0, but that didn't fix it.
Code is pretty simple - looks like:
Code:
LDA #$28
STA $2006
LDA #$a4
STA $2006
LDA #$f5 ;; the tile
STA $2007
Should this essentially do the exact same as $20 and $a4 respectively when that other nametable is showing? Anyone think of why this might not yield the same visual result?