I'm actually pretty proud that I've devised a hideable quasi-status bar system that works for me (thought probably less than efficient, it still feels good to wrap my head around it!) by turning off rendering and doing a quick overwrite to the 'status bar' area's tiles, then turning rednering back on (and will use this same method to update values in status bar and whatnot).
However, I can't quite change the attribute data correctly. Am I correct that the attribute data is stored starting at 3c0 (960) beyond $2007? I'm pretty sure that is correct. And I'd like to change the attributes for the first 16 blocks to the last set of colors in the palette.
Using my overwrite method, I have just been loading the designated tiles to $2007 in a loop until X has counted down from #$80 (128), which gives me the top two 'rows' as a status bar. Then, essentially, I've tried to make changes to $2007 + (960-128) or essentially $2007+#$340, thinking that's where the attribute data would be. I knew it was a stretch when I tried it, but I figured I'd make a few attempts before asking.
What would be the correct way for me to update attribute data in this subroutine to change the pallete of the first 16 attribute data blocks?
Also, I know this may not be an efficient method, and I'm open to hearing others (no scrolling, btw), but I still think this would be good info to have for other things as well, so I'd still love to hear a solution. I'd imagine it's not too difficult, just can't wrap my head around it. Thanks!
However, I can't quite change the attribute data correctly. Am I correct that the attribute data is stored starting at 3c0 (960) beyond $2007? I'm pretty sure that is correct. And I'd like to change the attributes for the first 16 blocks to the last set of colors in the palette.
Using my overwrite method, I have just been loading the designated tiles to $2007 in a loop until X has counted down from #$80 (128), which gives me the top two 'rows' as a status bar. Then, essentially, I've tried to make changes to $2007 + (960-128) or essentially $2007+#$340, thinking that's where the attribute data would be. I knew it was a stretch when I tried it, but I figured I'd make a few attempts before asking.
What would be the correct way for me to update attribute data in this subroutine to change the pallete of the first 16 attribute data blocks?
Also, I know this may not be an efficient method, and I'm open to hearing others (no scrolling, btw), but I still think this would be good info to have for other things as well, so I'd still love to hear a solution. I'd imagine it's not too difficult, just can't wrap my head around it. Thanks!